diff http/src/luan/modules/http/Http_test.luan @ 539:473e456444ff

Remove object-oriented primitive methods for string and binary
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 01 Jun 2015 17:53:55 -0600
parents 9218f9cf45d3
children cd944b010f25
line wrap: on
line diff
--- a/http/src/luan/modules/http/Http_test.luan	Mon Jun 01 00:51:44 2015 -0600
+++ b/http/src/luan/modules/http/Http_test.luan	Mon Jun 01 17:53:55 2015 -0600
@@ -1,4 +1,6 @@
 local Io = require "luan:Io"
+local String = require "luan:String"
+local matches = String.matches
 local Http = require "luan:http/Http"
 
 local M = {}
@@ -7,7 +9,7 @@
 M.cookie = {}
 
 function M.get_page(path)
-	if M.welcome_file ~= nil and path.matches ".*/" then
+	if M.welcome_file ~= nil and matches(path,".*/") then
 		path = path .. M.welcome_file
 	end
 	local old_out = Io.stdout