square/SocketRocket — pull request #136 by jakajancar (2013-12-27 12:37:55+00:00)
Title: Origin syntax fix

I don't know why SocketRocket is even setting the Origin header, but if it does, it should at least use the correct [syntax](http://tools.ietf.org/html/rfc6454#page-12), so servers don't throw errors when parsing it.

This pull request:

- omits the trailing slash
- omits port iff it's the default for the scheme.