diff options
author | Piotr Bober <[email protected]> | 2018-12-17 15:27:48 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-12-31 14:28:09 +0100 |
commit | 32779615616fe3ae052eef94d838ecc9180045a7 (patch) | |
tree | a5421656726e8d0df94261dd42c4f77fa741d956 /src | |
parent | f8df52d6a5bf201cc6c5f706a5e886894947e108 (diff) | |
download | gun-32779615616fe3ae052eef94d838ecc9180045a7.tar.gz gun-32779615616fe3ae052eef94d838ecc9180045a7.tar.bz2 gun-32779615616fe3ae052eef94d838ecc9180045a7.zip |
Fix stripping stream reference in gun_http
An invalid stream reference (the websocket tuple wrapper)
was sent in the gun_data message.
Also moves autobahn to its own test suite.
Diffstat (limited to 'src')
-rw-r--r-- | src/gun_http.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gun_http.erl b/src/gun_http.erl index 81310bf..57f72c7 100644 --- a/src/gun_http.erl +++ b/src/gun_http.erl @@ -265,7 +265,7 @@ handle_head(Data, State=#http_state{socket=Socket, version=ClientVersion, case IsFin of fin -> undefined; nofin -> - gun_content_handler:init(ReplyTo, StreamRef, + gun_content_handler:init(ReplyTo, stream_ref(StreamRef), Status, Headers, Handlers0) end end, |