-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try and fix websocket on firefox. Almost certainly not perfect.
- Loading branch information
1 parent
dee6f09
commit f9d0738
Showing
2 changed files
with
43 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
http/src/test/scala/org/http4s/blaze/http/websocket/WebsocketHandshakeSpec.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.http4s.blaze.http.websocket | ||
|
||
import org.specs2.mutable.Specification | ||
|
||
/** | ||
* Created by Bryce Anderson on 6/5/14. | ||
*/ | ||
class WebsocketHandshakeSpec extends Specification { | ||
|
||
"WebsocketHandshake" should { | ||
|
||
"Be able to split multi value header keys" in { | ||
val totalValue = "keep-alive, Upgrade" | ||
val values = List("upgrade", "Upgrade", "keep-alive", "Keep-alive") | ||
values.foldLeft(true){ (b, v) => | ||
b && ServerHandshaker.valueContains(v, totalValue) | ||
} should_== true | ||
} | ||
|
||
} | ||
|
||
} |