Skip to content

Commit 5e2fe91

Browse files
committed
Update RequestParsing.scala
1 parent d6572d0 commit 5e2fe91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

http-core/src/main/scala/org/apache/pekko/http/impl/engine/http2/RequestParsing.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ private[http2] object RequestParsing {
192192
private[http2] def parseHeaderPair(httpHeaderParser: HttpHeaderParser, name: String, value: String): HttpHeader = {
193193
import HttpHeader.ParsingResult
194194
HttpHeader.parse(name, value, httpHeaderParser.settings) match {
195-
case ParsingResult.Ok(header, errors) if errors.isEmpty => header
196-
case ParsingResult.Ok(_, errors) => throw ParsingException(errors.head)
197-
case ParsingResult.Error(info) => throw ParsingException(info)
195+
case ParsingResult.Ok(header, errors) => header // don't care about errors here
196+
// case ParsingResult.Ok(_, errors) => throw ParsingException(errors.head)
197+
case ParsingResult.Error(info) => throw ParsingException(info)
198198
}
199199
}
200200

0 commit comments

Comments
 (0)