aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-12-08 20:38:31 +0100
committerLoïc Hoguin <[email protected]>2017-12-08 20:38:31 +0100
commit17719a136dbe520436ae4aa5dd4827a19b1a5348 (patch)
tree77a9fadb99c971b2b1e7cc59c97c9b2aa2ab9494 /src
parentb000d53855592c5470a8c2f2dcebc4915ec4d4d1 (diff)
downloadcowboy-17719a136dbe520436ae4aa5dd4827a19b1a5348.tar.gz
cowboy-17719a136dbe520436ae4aa5dd4827a19b1a5348.tar.bz2
cowboy-17719a136dbe520436ae4aa5dd4827a19b1a5348.zip
Add the few remaining tests to the rfc7231 test suite
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_compress_h.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cowboy_compress_h.erl b/src/cowboy_compress_h.erl
index 9dcb805..fb5ed71 100644
--- a/src/cowboy_compress_h.erl
+++ b/src/cowboy_compress_h.erl
@@ -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 ->