Diff
Not logged in

Differences From:

File src/http.c part of check-in [1dbf332352] - Fix the HOST: header to use the original URL, not the proxy URL. by drh on 2008-05-05 19:08:43. [view]

To:

File src/http.c part of check-in [31824fbf91] - Add a "User-Agent" header to the HTTP traffic generated by fossil. The user-agent string is "Fossil/$UUID". by dan on 2008-07-26 16:51:46. [view]

@@ -340,8 +340,9 @@
     zSep = "/";
   }
   blob_appendf(&hdr, "POST %s%sxfer HTTP/1.1\r\n", g.urlPath, zSep);
   blob_appendf(&hdr, "Host: %s\r\n", g.urlHostname);
+  blob_appendf(&hdr, "User-Agent: Fossil/" MANIFEST_VERSION "\r\n");
   if( g.fHttpTrace ){
     blob_appendf(&hdr, "Content-Type: application/x-fossil-debug\r\n");
   }else{
     blob_appendf(&hdr, "Content-Type: application/x-fossil\r\n");