ソースを参照

Appveyor: Try different command for Visual Studio 2019 build

bel2125 5 年 前
コミット
5a958cefac
2 ファイル変更7 行追加4 行削除
  1. 3 3
      appveyor.yml
  2. 4 1
      src/civetweb.c

+ 3 - 3
appveyor.yml

@@ -238,7 +238,7 @@ environment:
       enable_stats: YES
       configuration: Release
       platform: x64
-      image: Visual Studio 2015    
+      image: Visual Studio 2015
     # Visual Studio 2017
     - id: Full-VS2017-x86
       compiler: msvc-20-seh
@@ -279,7 +279,7 @@ environment:
       enable_stats: YES
       configuration: Release
       platform: x86
-      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
+      image: Visual Studio 2019
     - id: Full-VS2019-x64
       compiler: msvc-21-seh
       build_shared: NO
@@ -292,7 +292,7 @@ environment:
       enable_stats: YES
       configuration: Release
       platform: x64
-      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019      
+      image: Visual Studio 2019
     # Experimental Ubuntu
     - id: Ubuntu1604-GCC-x64
       compiler: gcc-5.1.0-posix

+ 4 - 1
src/civetweb.c

@@ -18869,8 +18869,11 @@ worker_thread_run(struct mg_connection *conn)
 				/* process HTTPS connection */
 				if (!memcmp(tls.alpn_proto, "\x02h2", 3)) {
 					/* process HTTPS/2 connection */
-					conn->protocol_type = PROTOCOL_TYPE_HTTP2;
 					init_connection(conn);
+					conn->connection_type = CONNECTION_TYPE_REQUEST;
+					conn->protocol_type = PROTOCOL_TYPE_HTTP2;
+					conn->content_len = -1;
+					conn->is_chunked = 0;
 #ifdef USE_HTTP2
 					process_new_http2_connection(conn);
 #endif