aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-08-06 10:45:39 +0200
committerLoïc Hoguin <[email protected]>2018-08-06 10:45:39 +0200
commitc064c6d8fce7499b6ceda28f92199ef1661fb622 (patch)
tree2bff5251c6cabf1c730fbeda5c9d7db3caf77c58 /src
parent695925eb70bd19ae19d2656a9acf66174e482d90 (diff)
downloadgun-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.erl2
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)