diff options
-rw-r--r-- | src/url.lua | 5 | ||||
-rw-r--r-- | test/auth/.htaccess | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/url.lua b/src/url.lua index eb094d5..1e5a3f6 100644 --- a/src/url.lua +++ b/src/url.lua | |||
@@ -183,8 +183,9 @@ end | |||
183 | -- a stringing with the corresponding URL | 183 | -- a stringing with the corresponding URL |
184 | ----------------------------------------------------------------------------- | 184 | ----------------------------------------------------------------------------- |
185 | function _M.build(parsed) | 185 | function _M.build(parsed) |
186 | local ppath = _M.parse_path(parsed.path or "") | 186 | --local ppath = _M.parse_path(parsed.path or "") |
187 | local url = _M.build_path(ppath) | 187 | --local url = _M.build_path(ppath) |
188 | local url = parsed.path or "" | ||
188 | if parsed.params then url = url .. ";" .. parsed.params end | 189 | if parsed.params then url = url .. ";" .. parsed.params end |
189 | if parsed.query then url = url .. "?" .. parsed.query end | 190 | if parsed.query then url = url .. "?" .. parsed.query end |
190 | local authority = parsed.authority | 191 | local authority = parsed.authority |
diff --git a/test/auth/.htaccess b/test/auth/.htaccess index bb2794a..2509ae3 100644 --- a/test/auth/.htaccess +++ b/test/auth/.htaccess | |||
@@ -1,4 +1,4 @@ | |||
1 | AuthName "test-auth" | 1 | AuthName "test-auth" |
2 | AuthType Basic | 2 | AuthType Basic |
3 | AuthUserFile /Users/diego/impa/luasocket/test/auth/.htpasswd | 3 | AuthUserFile /home/diego/impa/luasocket/test/auth/.htpasswd |
4 | Require valid-user | 4 | Require valid-user |