diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2006-04-03 03:10:56 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2006-04-03 03:10:56 +0000 |
commit | e9d477aba3bbc084c0a7872e4eaf725e2689e4a6 (patch) | |
tree | 7f6a514fab405c4de2bb983f601af2dbb3cfdc5d /src | |
parent | 71213595260923f9d7cc7d41bb8b7b6227c1da01 (diff) | |
download | luasocket-e9d477aba3bbc084c0a7872e4eaf725e2689e4a6.tar.gz luasocket-e9d477aba3bbc084c0a7872e4eaf725e2689e4a6.tar.bz2 luasocket-e9d477aba3bbc084c0a7872e4eaf725e2689e4a6.zip |
Final patches...
Diffstat (limited to 'src')
-rw-r--r-- | src/http.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http.lua b/src/http.lua index e002a8c..bfa0345 100644 --- a/src/http.lua +++ b/src/http.lua | |||
@@ -226,9 +226,9 @@ local default = { | |||
226 | local function adjustrequest(reqt) | 226 | local function adjustrequest(reqt) |
227 | -- parse url if provided | 227 | -- parse url if provided |
228 | local nreqt = reqt.url and url.parse(reqt.url, default) or {} | 228 | local nreqt = reqt.url and url.parse(reqt.url, default) or {} |
229 | local t = url.parse(reqt.url, default) | ||
230 | -- explicit components override url | 229 | -- explicit components override url |
231 | for i,v in base.pairs(reqt) do nreqt[i] = v end | 230 | for i,v in base.pairs(reqt) do nreqt[i] = v end |
231 | if nreqt.port == "" then nreqt.port = 80 end | ||
232 | socket.try(nreqt.host, "invalid host '" .. base.tostring(nreqt.host) .. "'") | 232 | socket.try(nreqt.host, "invalid host '" .. base.tostring(nreqt.host) .. "'") |
233 | -- compute uri if user hasn't overriden | 233 | -- compute uri if user hasn't overriden |
234 | nreqt.uri = reqt.uri or adjusturi(nreqt) | 234 | nreqt.uri = reqt.uri or adjusturi(nreqt) |