diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-05-28 06:16:43 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-05-28 06:16:43 +0000 |
commit | 694edcc3c1ac3041ff8cdd753a2f7894e8783e6c (patch) | |
tree | f8797b4c7671fbf9042fc011277d69d4c3549045 /src/url.lua | |
parent | bf738a03368b8de9c574d9631f131c5a520acf7b (diff) | |
download | luasocket-694edcc3c1ac3041ff8cdd753a2f7894e8783e6c.tar.gz luasocket-694edcc3c1ac3041ff8cdd753a2f7894e8783e6c.tar.bz2 luasocket-694edcc3c1ac3041ff8cdd753a2f7894e8783e6c.zip |
Committing with require.
Diffstat (limited to 'src/url.lua')
-rw-r--r-- | src/url.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/url.lua b/src/url.lua index 2b9e4dc..0fba14d 100644 --- a/src/url.lua +++ b/src/url.lua | |||
@@ -125,7 +125,7 @@ function parse(url, default) | |||
125 | -- initialize default parameters | 125 | -- initialize default parameters |
126 | local parsed = default or {} | 126 | local parsed = default or {} |
127 | -- empty url is parsed to nil | 127 | -- empty url is parsed to nil |
128 | if not url or url == "" then return nil end | 128 | if not url or url == "" then return nil, "invalid url" end |
129 | -- remove whitespace | 129 | -- remove whitespace |
130 | -- url = string.gsub(url, "%s", "") | 130 | -- url = string.gsub(url, "%s", "") |
131 | -- get fragment | 131 | -- get fragment |