aboutsummaryrefslogtreecommitdiffstats
path: root/test/spdy_server.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/spdy_server.erl')
-rw-r--r--test/spdy_server.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/spdy_server.erl b/test/spdy_server.erl
index 0b3ec6d..10ef067 100644
--- a/test/spdy_server.erl
+++ b/test/spdy_server.erl
@@ -105,6 +105,11 @@ code_change(_OldVsn, State, _Extra) ->
do_send([], _, _) ->
ok;
+do_send([{syn_stream, StreamID, AssocToStreamID, IsFin, IsUnidirectional, Priority,
+ Method, Scheme, Host, Path, Version, Headers}|Tail], Socket, Zdef) ->
+ ssl:send(Socket, cow_spdy:syn_stream(Zdef, StreamID, AssocToStreamID, IsFin, IsUnidirectional, Priority,
+ Method, Scheme, Host, Path, Version, Headers)),
+ do_send(Tail, Socket, Zdef);
do_send([{syn_reply, StreamID, IsFin, Status, Version, Headers}|Tail], Socket, Zdef) ->
ssl:send(Socket, cow_spdy:syn_reply(Zdef, StreamID, IsFin, Status, Version, Headers)),
do_send(Tail, Socket, Zdef);