mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
Merge 0.11->trunk
This commit is contained in:
commit
f7614d491a
1 changed files with 2 additions and 1 deletions
|
@ -254,7 +254,8 @@ function handle_request(conn, request, finish_cb)
|
|||
};
|
||||
conn._http_open_response = response;
|
||||
|
||||
local host = (request.headers.host or ""):match("[^:]+");
|
||||
local host = request.headers.host;
|
||||
if host then host = host:gsub(":%d+$",""); end
|
||||
|
||||
-- Some sanity checking
|
||||
local err_code, err;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue