Skip to content

Commit

Permalink
Whitespace Header
Browse files Browse the repository at this point in the history
  • Loading branch information
varshith257 committed Sep 23, 2024
1 parent a6f3571 commit 8a22693
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zio-http/jvm/src/test/scala/zio/http/ServerSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,8 @@ object ServerSpec extends RoutesRunnableSpec {
val app = Routes(route)

// Crafting a request with a whitespace between the header field name and the colon
val requestWithWhitespaceHeader = Request.get("/test").addHeader("Invalid Header : value")
// val requestWithWhitespaceHeader = Request.get("/test").addHeader("Invalid Header : value")
val requestWithWhitespaceHeader = Request.get("/test").addHeader(Header.Custom("Invalid Header ", "value"))

for {
response <- app.runZIO(requestWithWhitespaceHeader)
Expand Down

0 comments on commit 8a22693

Please sign in to comment.