mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Add the few remaining tests to the rfc7231 test suite
This commit is contained in:
parent
b000d53855
commit
17719a136d
3 changed files with 99 additions and 2 deletions
|
@ -66,6 +66,7 @@ early_error(StreamID, Reason, PartialReq, Resp, Opts) ->
|
|||
|
||||
%% Check if the client supports decoding of gzip responses.
|
||||
check_req(Req) ->
|
||||
%% @todo Probably shouldn't unconditionally crash on failure.
|
||||
case cowboy_req:parse_header(<<"accept-encoding">>, Req) of
|
||||
%% Client doesn't support any compression algorithm.
|
||||
undefined ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue