aboutsummaryrefslogtreecommitdiff
path: root/src/url.lua
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2005-06-12 22:02:21 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2005-06-12 22:02:21 +0000
commit8b114f3bf4ccea3b065551fa94649a9e45935b5b (patch)
tree06f2faa7e896e9434ba89ec68445ea56e6c8c6dc /src/url.lua
parentb22f6f3830515a57a8776e7489b3e2d434abd12f (diff)
downloadluasocket-8b114f3bf4ccea3b065551fa94649a9e45935b5b.tar.gz
luasocket-8b114f3bf4ccea3b065551fa94649a9e45935b5b.tar.bz2
luasocket-8b114f3bf4ccea3b065551fa94649a9e45935b5b.zip
Stupid bug in http.lua.
Diffstat (limited to 'src/url.lua')
-rw-r--r--src/url.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/url.lua b/src/url.lua
index 7aa3760..f29ecc8 100644
--- a/src/url.lua
+++ b/src/url.lua
@@ -119,7 +119,7 @@ end
119function parse(url, default) 119function parse(url, default)
120 -- initialize default parameters 120 -- initialize default parameters
121 local parsed = {} 121 local parsed = {}
122 for i,v in (default or parsed) do parsed[i] = v end 122 for i,v in base.pairs(default or parsed) do parsed[i] = v end
123 -- empty url is parsed to nil 123 -- empty url is parsed to nil
124 if not url or url == "" then return nil, "invalid url" end 124 if not url or url == "" then return nil, "invalid url" end
125 -- remove whitespace 125 -- remove whitespace