|
@@ -65,11 +65,10 @@ request({http_request, _Method, _URI, Version}, State)
|
|
request({http_request, Method, {abs_path, AbsPath}, Version},
|
|
request({http_request, Method, {abs_path, AbsPath}, Version},
|
|
State=#state{socket=Socket, transport=Transport}) ->
|
|
State=#state{socket=Socket, transport=Transport}) ->
|
|
{Path, RawPath, Qs} = cowboy_dispatcher:split_path(AbsPath),
|
|
{Path, RawPath, Qs} = cowboy_dispatcher:split_path(AbsPath),
|
|
- {ok, Peer} = Transport:peername(Socket),
|
|
|
|
ConnAtom = version_to_connection(Version),
|
|
ConnAtom = version_to_connection(Version),
|
|
wait_header(#http_req{socket=Socket, transport=Transport,
|
|
wait_header(#http_req{socket=Socket, transport=Transport,
|
|
connection=ConnAtom, method=Method, version=Version,
|
|
connection=ConnAtom, method=Method, version=Version,
|
|
- peer=Peer, path=Path, raw_path=RawPath, raw_qs=Qs}, State);
|
|
|
|
|
|
+ path=Path, raw_path=RawPath, raw_qs=Qs}, State);
|
|
request({http_request, Method, '*', Version},
|
|
request({http_request, Method, '*', Version},
|
|
State=#state{socket=Socket, transport=Transport}) ->
|
|
State=#state{socket=Socket, transport=Transport}) ->
|
|
{ok, Peer} = Transport:peername(Socket),
|
|
{ok, Peer} = Transport:peername(Socket),
|