Skip to content

Commit

Permalink
CLRF
Browse files Browse the repository at this point in the history
  • Loading branch information
varshith257 committed Sep 23, 2024
1 parent 092df3e commit 08f38bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zio-http/jvm/src/test/scala/zio/http/ServerSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ object ServerSpec extends RoutesRunnableSpec {

// Crafting a request with invalid headers containing CR, LF, and NULL
val requestWithCRLFHeader = Request.get("/test").addHeader("InvalidHeader", "Value\r\n")
val requestWithNullHeader = Request.get("/test").addHeader("InvalidHeader", "Value\0")
val requestWithNullHeader = Request.get("/test").addHeader("InvalidHeader", "Value\u0000")

for {
responseCRLF <- app.runZIO(requestWithCRLFHeader)
Expand Down

0 comments on commit 08f38bc

Please sign in to comment.