Skip to content

Commit

Permalink
Embrace the header merging behaviour of the Fetch API
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunk committed Dec 1, 2020
1 parent c47d973 commit 24d8972
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@ trait ClientBasicTests { this: ClientTests[Any] =>
in_query_list_out_header_list,
port,
List("plum", "watermelon", "apple")
).unsafeToFuture().map(_.right.get should contain theSameElementsAs List("apple", "watermelon", "plum"))
).unsafeToFuture().map(
_.right.get should contain theSameElementsAs (
// The fetch API merges multiple header values having the same name into a single comma separated value
if (platformIsScalaJS)
List("apple, watermelon, plum")
else
List("apple", "watermelon", "plum")))
}
// cookie support in sttp is currently only available on the JVM
if (!platformIsScalaJS) {
Expand Down

0 comments on commit 24d8972

Please sign in to comment.