Skip to content

Commit 283be1d

Browse files
author
Eun Woo Song
committed
add a test for a case where there are multiple white spaces between q and =
1 parent 8eb0ed2 commit 283be1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/scala/com/lascala/http/HeadersTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class HeadersTest extends FlatSpec with ShouldMatchers {
8181
it can "parse headers that have white spaces between 'q' and '=' in q param" in {
8282
val headers = List(
8383
Header(Header.ACCEPT_CHARSET, "utf-8"),
84-
Header(Header.ACCEPT_ENCODING, "gzip; q =0.7, deflate, test; q = 0.5, test2"),
84+
Header(Header.ACCEPT_ENCODING, "gzip; q =0.7, deflate; q = 1.0, test; q = 0.5, test2"),
8585
Header(Header.ACCEPT, "text/plain")
8686
)
8787

0 commit comments

Comments
 (0)