File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
http-core/src/main/scala/org/apache/pekko/http/impl/engine/http2 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments