From 011982368a21b24d17e39b1edff683f8b49866b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 29 Apr 2018 20:30:49 +0200 Subject: Accept infinity for some HTTP/2 SETTINGS max_concurrent_streams and max_header_list_size to be precise. --- src/cow_http2.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cow_http2.erl b/src/cow_http2.erl index 7f2d75b..e3f5537 100644 --- a/src/cow_http2.erl +++ b/src/cow_http2.erl @@ -391,9 +391,11 @@ settings_payload(Settings) -> header_table_size -> <<1:16, Value:32>>; enable_push when Value -> <<2:16, 1:32>>; enable_push -> <<2:16, 0:32>>; + max_concurrent_streams when Value =:= infinity -> <<>>; max_concurrent_streams -> <<3:16, Value:32>>; initial_window_size -> <<4:16, Value:32>>; max_frame_size -> <<5:16, Value:32>>; + max_header_list_size when Value =:= infinity -> <<>>; max_header_list_size -> <<6:16, Value:32>>; enable_connect_protocol when Value -> <<8:16, 1:32>>; enable_connect_protocol -> <<8:16, 0:32>> -- cgit v1.2.3