0
Fork 0
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:
Loïc Hoguin 2017-12-08 20:38:31 +01:00
parent b000d53855
commit 17719a136d
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
3 changed files with 99 additions and 2 deletions

View file

@ -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 ->