Skip to content

Commit 184e9de

Browse files
committed
work around cookie space handling in scala-requests
1 parent 23f9bb3 commit 184e9de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/cookies/app/src/Cookies.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ object Cookies extends cask.MainRoutes{
99
def storeCookies() = {
1010
cask.Response(
1111
"Cookies Set!",
12-
cookies = Seq(cask.Cookie("username", "the username"))
12+
cookies = Seq(cask.Cookie("username", "the_username"))
1313
)
1414
}
1515

example/cookies/app/test/src/ExampleTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ object ExampleTests extends TestSuite{
2121
val sess = requests.Session()
2222
sess.get(s"$host/read-cookie", check = false).statusCode ==> 400
2323
sess.get(s"$host/store-cookie")
24-
sess.get(s"$host/read-cookie").text() ==> "the username"
24+
sess.get(s"$host/read-cookie").text() ==> "the_username"
2525
sess.get(s"$host/read-cookie").statusCode ==> 200
2626
sess.get(s"$host/delete-cookie")
2727
sess.get(s"$host/read-cookie", check = false).statusCode ==> 400

0 commit comments

Comments
 (0)