From 115cb2e8144c8edbeaf3cd23f176e4ca6108af6a Mon Sep 17 00:00:00 2001 From: Philip Stears Date: Mon, 6 Jun 2016 22:44:53 +0100 Subject: Fix badarg in http/2 ping generation --- src/gun_http2.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gun_http2.erl b/src/gun_http2.erl index 095056a..7713dc1 100644 --- a/src/gun_http2.erl +++ b/src/gun_http2.erl @@ -197,7 +197,7 @@ close_streams(Owner, [#stream{ref=StreamRef}|Tail]) -> close_streams(Owner, Tail). keepalive(State=#http2_state{socket=Socket, transport=Transport}) -> - Transport:send(Socket, cow_http2:ping(<< 0:64 >>)), + Transport:send(Socket, cow_http2:ping(0)), State. %% @todo Shouldn't always be HTTPS scheme. We need to properly keep track of it. -- cgit v1.2.3