Skip to content

Commit

Permalink
remove unnecessary interpolation (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning authored Jul 16, 2024
1 parent 41e4f46 commit 288cbbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ object HttpHeader {
case e: ParseError => parser.parseError(e)
case e => parser.failure(e)
}).info
ParsingResult.Error(info.withSummaryPrepended(s"Illegal HTTP header value"))
ParsingResult.Error(info.withSummaryPrepended("Illegal HTTP header value"))
}
} else ParsingResult.Error(ErrorInfo(s"Illegal HTTP header name", name))
} else ParsingResult.Error(ErrorInfo("Illegal HTTP header name", name))

/** INTERNAL API */
@InternalApi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ class HttpHeaderSpec extends AnyFreeSpec with Matchers {
ErrorInfo("Illegal HTTP header 'User-Agent': Illegal header value", "Header comment nested too deeply")
}

"should not broken when header-value is null" in {
"not break when header-value is null" in {
val errors = parse("Content-Disposition", null).errors
errors should have size 1
errors.head shouldBe an[ErrorInfo]
Expand Down

0 comments on commit 288cbbe

Please sign in to comment.