anchor.diff:  
   hixie76_location_test() ->
   	?assertEqual(<<"ws://localhost/path">>,
  -		hixie76_location(other, <<"localhost">>, 80, <<"/path">>)),
  +		hixie76_location(other, <<"localhost">>, 80, <<"/path">>, <<>>)),
   	?assertEqual(<<"ws://localhost:8080/path">>,
  -		hixie76_location(other, <<"localhost">>, 8080, <<"/path">>)),
  +		hixie76_location(other, <<"localhost">>, 8080, <<"/path">>, <<>>)),
  +	?assertEqual(<<"ws://localhost:8080/path?dummy=2785">>,
  +		hixie76_location(other, <<"localhost">>, 8080, <<"/path">>, <<"dummy=2785">>)),
   	?assertEqual(<<"wss://localhost/path">>,
  -		hixie76_location(ssl, <<"localhost">>, 443, <<"/path">>)),
  +		hixie76_location(ssl, <<"localhost">>, 443, <<"/path">>, <<>>)),
   	?assertEqual(<<"wss://localhost:8443/path">>,
  -		hixie76_location(ssl, <<"localhost">>, 8443, <<"/path">>)),
  +		hixie76_location(ssl, <<"localhost">>, 8443, <<"/path">>, <<>>)),
  +	?assertEqual(<<"wss://localhost:8443/path?dummy=2785">>,
  +		hixie76_location(ssl, <<"localhost">>, 8443, <<"/path">>, <<"dummy=2785">>)),
   	ok.
   
   -endif.
  
positive.code: -spec websocket_handshake(#state{}, #http_req{}, any()) -> ok.
  websocket_handshake(State=#state{version=0, origin=Origin,
  		challenge=Challenge}, Req=#http_req{transport=Transport,
  		raw_host=Host, port=Port, raw_path=Path}, HandlerState) ->
  	Location = hixie76_location(Transport:name(), Host, Port, Path),
  	{ok, Req2} = cowboy_http_req:reply(
  		<<"101 WebSocket Protocol Handshake">>,
  		[{<<"Connection">>, <<"Upgrade">>},
  
negative.code: 	Spaces = length([C || << C >> <= Key, C =:= 32]),
  	Number div Spaces.
  
  -spec hixie76_location(atom(), binary(), inet:ip_port(), binary(), binary())
  	-> binary().
  hixie76_location(Protocol, Host, Port, Path, <<>>) ->
      << (hixie76_location_protocol(Protocol))/binary, "://", Host/binary,
         (hixie76_location_port(ssl, Port))/binary, Path/binary>>;
  hixie76_location(Protocol, Host, Port, Path, QS) ->
      << (hixie76_location_protocol(Protocol))/binary, "://", Host/binary,
         (hixie76_location_port(ssl, Port))/binary, Path/binary, "?", QS/binary >>.
  
  -spec hixie76_location_protocol(atom()) -> binary().
  hixie76_location_protocol(ssl) -> <<"wss">>;
  