diff options
author | Loïc Hoguin <[email protected]> | 2018-08-06 10:45:39 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-08-06 10:45:39 +0200 |
commit | c064c6d8fce7499b6ceda28f92199ef1661fb622 (patch) | |
tree | 2bff5251c6cabf1c730fbeda5c9d7db3caf77c58 /src | |
parent | 695925eb70bd19ae19d2656a9acf66174e482d90 (diff) | |
download | gun-c064c6d8fce7499b6ceda28f92199ef1661fb622.tar.gz gun-c064c6d8fce7499b6ceda28f92199ef1661fb622.tar.bz2 gun-c064c6d8fce7499b6ceda28f92199ef1661fb622.zip |
Fix the status code passed to content handlers
The integer form is expected, not the binary.
Diffstat (limited to 'src')
-rw-r--r-- | src/gun_http2.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gun_http2.erl b/src/gun_http2.erl index c107095..89deea4 100644 --- a/src/gun_http2.erl +++ b/src/gun_http2.erl @@ -162,7 +162,7 @@ frame({headers, StreamID, IsFin, head_fin, HeaderBlock}, fin -> undefined; nofin -> gun_content_handler:init(ReplyTo, StreamRef, - Status, Headers, Handlers0) + IntStatus, Headers, Handlers0) end, remote_fin(Stream#stream{handler_state=Handlers}, State#http2_state{decode_state=DecodeState}, IsFin) |