Skip to content

Commit

Permalink
bugfix for cookie path
Browse files Browse the repository at this point in the history
  • Loading branch information
TomTriple committed Oct 15, 2023
1 parent cc778b1 commit ea70b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zio-http/src/main/scala/zio/http/Response.scala
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ final case class Response(
* Adds flash values to the cookie-based flash-scope.
*/
def addFlash[A](setter: Flash.Setter[A]): Response =
self.addCookie(Flash.Setter.run(setter))
self.addCookie(Flash.Setter.run(setter).copy(path = Some(Path.root)))

/**
* Collects the potentially streaming body of the response into a single
Expand Down

0 comments on commit ea70b8a

Please sign in to comment.