Skip to content

Commit e283428

Browse files
committed
If no content length is set assume chunked
1 parent 4ffbb27 commit e283428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/buoy_protocol.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ binary_split_global(Bin, Pattern) ->
148148
end.
149149

150150
content_length([]) ->
151-
undefined;
151+
chunked;
152152
content_length([<<"Content-Length: ", Rest/binary>> | _T]) ->
153153
binary_to_integer(Rest);
154154
content_length([<<"content-length: ", Rest/binary>> | _T]) ->

0 commit comments

Comments
 (0)