Print more quotes.
authorEmil Mikulic <emikulic@gmail.com>
Tue, 18 Jan 2011 13:47:18 +0000 (00:47 +1100)
committerEmil Mikulic <emikulic@gmail.com>
Sun, 28 Apr 2013 10:55:57 +0000 (20:55 +1000)
darkhttpd.c
devel/test.py

index b23871e..d6503f7 100644 (file)
@@ -1689,7 +1689,7 @@ static void process_get(struct connection *conn) {
     }
     free(decoded_url);
     if (debug)
-        printf("uri=%s, target=%s, content-type=%s\n",
+        printf("uri=\"%s\", target=\"%s\", content-type=\"%s\"\n",
                conn->uri, target, mimetype);
 
     /* open file */
index d1ecfdf..c0d27ee 100755 (executable)
@@ -108,8 +108,8 @@ def makeCase(name, url, hdr_checker=None, body_checker=None,
 def makeCases(name, url, hdr_checker=None, body_checker=None,
               req_hdrs={"User-Agent": "test.py"}):
     # FIXME: 0.9 is broken
-    #for http_ver in [None, "1.0", "1.1"]:
-    for http_ver in ["1.0", "1.1"]:
+    for http_ver in [None, "1.0", "1.1"]:
+    #for http_ver in ["1.0", "1.1"]:
         for endl in ["\n", "\r\n"]:
             makeCase(name, url, hdr_checker, body_checker,
                      req_hdrs, http_ver, endl)