From ca5ccae9271dcecc58c85ef0174cf71d2e212c3d Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 12 May 2012 21:19:38 +0900 Subject: [PATCH] Prefer spdy/3 to spdy/2 in spdyd --- examples/SpdyServer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/SpdyServer.cc b/examples/SpdyServer.cc index 51f5bce3..6fbf9e8c 100644 --- a/examples/SpdyServer.cc +++ b/examples/SpdyServer.cc @@ -936,9 +936,9 @@ int SpdyServer::run() next_proto.second = 7; } else { proto_list[0] = 6; - memcpy(&proto_list[1], "spdy/2", 6); + memcpy(&proto_list[1], "spdy/3", 6); proto_list[7] = 6; - memcpy(&proto_list[8], "spdy/3", 6); + memcpy(&proto_list[8], "spdy/2", 6); next_proto.first = proto_list; next_proto.second = sizeof(proto_list); }