mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Reply with error 501 on all non absolute path URIs for now.
This commit is contained in:
parent
7ef67d08fe
commit
673c7e2cb5
1 changed files with 2 additions and 0 deletions
|
@ -68,6 +68,8 @@ request({http_request, Method, {abs_path, AbsPath}, Version},
|
|||
{ok, Peer} = Transport:peername(Socket),
|
||||
wait_header(#http_req{socket=Socket, transport=Transport, method=Method,
|
||||
version=Version, peer=Peer, path=Path, raw_qs=Qs}, State);
|
||||
request({http_request, _Method, _URI, _Version}, State) ->
|
||||
error_terminate(501, State);
|
||||
request({http_error, "\r\n"}, State) ->
|
||||
wait_request(State);
|
||||
request({http_error, _Any}, State) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue