@@ -148,8 +148,7 @@ parse_method(_, _, _, Max, _, _) ->
148148 % % will be able to handle it.
149149 {error , {size_error , Max , 413 , " Method unreasonably long" }, default_version ()}.
150150
151- parse_uri (_ , _ , Current , MaxURI , _ , _ )
152- when (Current > MaxURI ) andalso (MaxURI =/= nolimit ) ->
151+ parse_uri (_ , _ , Current , MaxURI , _ , _ ) when Current > MaxURI ->
153152 % % We do not know the version of the client as it comes after the
154153 % % uri send the lowest version in the response so that the client
155154 % % will be able to handle it.
@@ -180,8 +179,7 @@ parse_version(<<Octet, Rest/binary>>, Version, Current, Max, Options, Result) w
180179parse_version (_ , _ , _ , Max ,_ ,_ ) ->
181180 {error , {size_error , Max , 413 , " Version string unreasonably long" }, default_version ()}.
182181
183- parse_headers (_ , _ , _ , Current , Max , _ , Result )
184- when Max =/= nolimit andalso Current > Max ->
182+ parse_headers (_ , _ , _ , Current , Max , _ , Result ) when Current > Max ->
185183 HttpVersion = lists :nth (3 , lists :reverse (Result )),
186184 {error , {size_error , Max , 413 , " Headers unreasonably long" }, HttpVersion };
187185
0 commit comments