Browse Source

Add missing lingering_data in the spec

Loïc Hoguin 5 years ago
parent
commit
1014a3bd57
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/cow_http2_machine.erl

+ 1 - 0
src/cow_http2_machine.erl

@@ -278,6 +278,7 @@ init_upgrade_stream(Method, State=#http2_machine{mode=server, remote_streamid=0,
 -spec frame(cow_http2:frame(), State)
 	-> {ok, State}
 	| {ok, {data, cow_http2:streamid(), cow_http2:fin(), binary()}, State}
+	| {ok, {lingering_data, cow_http2:streamid(), pos_integer()}, State}
 	| {ok, {headers, cow_http2:streamid(), cow_http2:fin(),
 		cow_http:headers(), pseudo_headers(), non_neg_integer() | undefined}, State}
 	| {ok, {trailers, cow_http2:streamid(), cow_http:headers()}, State}