Diff
Not logged in

Differences From:

File src/http_transport.c part of check-in [767ae79c3d] - There is some bug in the new HTTP transport layer. The easiest solution is to close the TCP connection after each round trip, which is what this check-in does. by drh on 2009-04-24 18:40:03. [view]

To:

File src/http_transport.c part of check-in [2554ba460d] - Potential fix for 40df1ced7e. by drh on 2009-06-25 12:26:28. [view]

@@ -147,8 +147,13 @@
     fclose(transport.pFile);
     zCmd = mprintf("\"%s\" http \"%s\" \"%s\" \"%s\" 127.0.0.1",
        g.argv[0], g.urlName, transport.zOutFile, transport.zInFile
     );
+#ifdef __MINGW32__
+    /* Quote the entire command to work around goofiness in system() on
+    ** on windows. Ticket [40df1ced7e] */
+    zCmd = mprintf("\"%z\"", zCmd);
+#endif
     system(zCmd);
     free(zCmd);
     transport.pFile = fopen(transport.zInFile, "rb");
   }