Commit 288cbbe 1 parent 41e4f46 commit 288cbbe Copy full SHA for 288cbbe
File tree 2 files changed +3
-3
lines changed
main/scala/org/apache/pekko/http/scaladsl/model
test/scala/org/apache/pekko/http/impl/model/parser
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -103,9 +103,9 @@ object HttpHeader {
103
103
case e : ParseError => parser.parseError(e)
104
104
case e => parser.failure(e)
105
105
}).info
106
- ParsingResult .Error (info.withSummaryPrepended(s " Illegal HTTP header value " ))
106
+ ParsingResult .Error (info.withSummaryPrepended(" Illegal HTTP header value" ))
107
107
}
108
- } else ParsingResult .Error (ErrorInfo (s " Illegal HTTP header name " , name))
108
+ } else ParsingResult .Error (ErrorInfo (" Illegal HTTP header name" , name))
109
109
110
110
/** INTERNAL API */
111
111
@ InternalApi
Original file line number Diff line number Diff line change @@ -877,7 +877,7 @@ class HttpHeaderSpec extends AnyFreeSpec with Matchers {
877
877
ErrorInfo (" Illegal HTTP header 'User-Agent': Illegal header value" , " Header comment nested too deeply" )
878
878
}
879
879
880
- " should not broken when header-value is null" in {
880
+ " not break when header-value is null" in {
881
881
val errors = parse(" Content-Disposition" , null ).errors
882
882
errors should have size 1
883
883
errors.head shouldBe an[ErrorInfo ]
You can’t perform that action at this time.
0 commit comments