diff options
author | Loïc Hoguin <[email protected]> | 2020-02-27 16:27:34 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-02-27 16:27:34 +0100 |
commit | f0b64ece629e66590d2f6964d3f3102fc1cf11b8 (patch) | |
tree | 0537422743967df3d241cff18b26b17032c06dfb /test | |
parent | 85c1fea6ff5d82d3a6cdd8f13c9d292e4df90894 (diff) | |
download | gun-f0b64ece629e66590d2f6964d3f3102fc1cf11b8.tar.gz gun-f0b64ece629e66590d2f6964d3f3102fc1cf11b8.tar.bz2 gun-f0b64ece629e66590d2f6964d3f3102fc1cf11b8.zip |
Use specific error when HTTP/2 receives HTTP/1 response
Diffstat (limited to 'test')
-rw-r--r-- | test/rfc7540_SUITE.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rfc7540_SUITE.erl b/test/rfc7540_SUITE.erl index 76b4895..44794ef 100644 --- a/test/rfc7540_SUITE.erl +++ b/test/rfc7540_SUITE.erl @@ -111,7 +111,7 @@ prior_knowledge_preface_http1(_) -> handshake_completed = receive_from(OriginPid), receive {gun_down, ConnPid, http2, {error, {connection_error, protocol_error, - 'Invalid connection preface received. (RFC7540 3.5)'}}, []} -> + 'Invalid connection preface received. Appears to be an HTTP/1 response? (RFC7540 3.5)'}}, []} -> gun:close(ConnPid); Msg -> error({unexpected_msg, Msg}) @@ -138,7 +138,7 @@ prior_knowledge_preface_http1_await(_) -> {ok, http2} = gun:await_up(ConnPid), handshake_completed = receive_from(OriginPid), {error, {down, {shutdown, {error, {connection_error, protocol_error, - 'Invalid connection preface received. (RFC7540 3.5)'}}}}} + 'Invalid connection preface received. Appears to be an HTTP/1 response? (RFC7540 3.5)'}}}}} = gun:await(ConnPid, make_ref()), gun:close(ConnPid). |