No public description PiperOrigin-RevId: 917987043
diff --git a/quiche/balsa/balsa_frame.cc b/quiche/balsa/balsa_frame.cc index 830cc57..923f2c0 100644 --- a/quiche/balsa/balsa_frame.cc +++ b/quiche/balsa/balsa_frame.cc
@@ -729,10 +729,10 @@ if (header_properties::IsInvalidHeaderChar(*c)) { return true; } - if (*c == '\r' && - http_validation_policy().disallow_lone_cr_in_request_headers && - c + 1 < stream_end && *(c + 1) != '\n') { - return true; + if (*c == '\r' && c + 1 < stream_end && *(c + 1) != '\n') { + if (http_validation_policy().disallow_lone_cr_in_request_headers) { + return true; + } } }