diff options
author | Loïc Hoguin <[email protected]> | 2017-01-02 16:28:03 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-01-02 16:28:03 +0100 |
commit | 6fcb19616b09b59f8fab68b30c08606f9260a5b3 (patch) | |
tree | 2bfd00a36ab749782f16319499f28fdc77d6582c /src/gun.erl | |
parent | 8f8f63b1cef76a28b2bf7558f4dbb7feda6e9168 (diff) | |
download | gun-6fcb19616b09b59f8fab68b30c08606f9260a5b3.tar.gz gun-6fcb19616b09b59f8fab68b30c08606f9260a5b3.tar.bz2 gun-6fcb19616b09b59f8fab68b30c08606f9260a5b3.zip |
Implement HTTP/2 server push
Diffstat (limited to 'src/gun.erl')
-rw-r--r-- | src/gun.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gun.erl b/src/gun.erl index 82f658d..eeaaa1e 100644 --- a/src/gun.erl +++ b/src/gun.erl @@ -309,8 +309,8 @@ await(ServerPid, StreamRef, Timeout, MRef) -> {response, IsFin, Status, Headers}; {gun_data, ServerPid, StreamRef, IsFin, Data} -> {data, IsFin, Data}; - {gun_push, ServerPid, StreamRef, NewStreamRef, Method, Host, Path, Headers} -> - {push, NewStreamRef, Method, Host, Path, Headers}; + {gun_push, ServerPid, StreamRef, NewStreamRef, Method, URI, Headers} -> + {push, NewStreamRef, Method, URI, Headers}; {gun_error, ServerPid, StreamRef, Reason} -> {error, Reason}; {gun_error, ServerPid, Reason} -> |