0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-16 05:00:24 +00:00

Replace cowboy_req:path/1 with cowboy_req:raw_path/1

The latter is much more useful than the former, which ends up
being removed.
This commit is contained in:
Loïc Hoguin 2012-09-10 12:25:07 +02:00
parent 6fa734b487
commit 79839b7bb5
6 changed files with 22 additions and 29 deletions

View file

@ -156,7 +156,7 @@ upgrade_denied(#http_req{socket=Socket, transport=Transport,
websocket_handshake(State=#state{version=0, origin=Origin,
challenge={Key1, Key2}}, Req=#http_req{socket=Socket,
transport=Transport, host=Host, port=Port,
raw_path=Path, raw_qs=QS}, HandlerState) ->
path=Path, raw_qs=QS}, HandlerState) ->
Location = hixie76_location(Transport:name(), Host, Port, Path, QS),
{ok, Req2} = cowboy_req:upgrade_reply(
<<"101 WebSocket Protocol Handshake">>,