]> granicus.if.org Git - curl/commitdiff
sws: init http2 state properly
authorDaniel Stenberg <daniel@haxx.se>
Mon, 27 Apr 2015 06:38:52 +0000 (08:38 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 27 Apr 2015 06:38:52 +0000 (08:38 +0200)
It would otherwise cause problems when running tests after 1801 etc.

tests/server/sws.c

index 094a92d640c7c5fde3141fd00b17d21eb480c8a6..9ad54e4a8064c330ca330bc74138e0fe75337210 100644 (file)
@@ -913,6 +913,8 @@ static void init_httprequest(struct httprequest *req)
   req->callcount = 0;
   req->connect_port = 0;
   req->done_processing = 0;
+  req->upgrade = 0;
+  req->upgrade_request = 0;
 }
 
 /* returns 1 if the connection should be serviced again immediately, 0 if there