Fossil SCM

Sync client uses only HTTP/1.0 in order to avoid having to support chunked encoding.

drh 2009-10-05 14:29 trunk
Commit 6842999f824d0cd482a9e366dc544f58c41a81ac
1 file changed +1 -1
+1 -1
--- src/http.c
+++ src/http.c
@@ -89,11 +89,11 @@
8989
if( i>0 && g.urlPath[i-1]=='/' ){
9090
zSep = "";
9191
}else{
9292
zSep = "/";
9393
}
94
- blob_appendf(pHdr, "POST %s%sxfer HTTP/1.1\r\n", g.urlPath, zSep);
94
+ blob_appendf(pHdr, "POST %s%sxfer HTTP/1.0\r\n", g.urlPath, zSep);
9595
if( g.urlProxyAuth ){
9696
blob_appendf(pHdr, "Proxy-Authorization: %s\n", g.urlProxyAuth);
9797
}
9898
blob_appendf(pHdr, "Host: %s\r\n", g.urlHostname);
9999
blob_appendf(pHdr, "User-Agent: Fossil/" MANIFEST_VERSION "\r\n");
100100
--- src/http.c
+++ src/http.c
@@ -89,11 +89,11 @@
89 if( i>0 && g.urlPath[i-1]=='/' ){
90 zSep = "";
91 }else{
92 zSep = "/";
93 }
94 blob_appendf(pHdr, "POST %s%sxfer HTTP/1.1\r\n", g.urlPath, zSep);
95 if( g.urlProxyAuth ){
96 blob_appendf(pHdr, "Proxy-Authorization: %s\n", g.urlProxyAuth);
97 }
98 blob_appendf(pHdr, "Host: %s\r\n", g.urlHostname);
99 blob_appendf(pHdr, "User-Agent: Fossil/" MANIFEST_VERSION "\r\n");
100
--- src/http.c
+++ src/http.c
@@ -89,11 +89,11 @@
89 if( i>0 && g.urlPath[i-1]=='/' ){
90 zSep = "";
91 }else{
92 zSep = "/";
93 }
94 blob_appendf(pHdr, "POST %s%sxfer HTTP/1.0\r\n", g.urlPath, zSep);
95 if( g.urlProxyAuth ){
96 blob_appendf(pHdr, "Proxy-Authorization: %s\n", g.urlProxyAuth);
97 }
98 blob_appendf(pHdr, "Host: %s\r\n", g.urlHostname);
99 blob_appendf(pHdr, "User-Agent: Fossil/" MANIFEST_VERSION "\r\n");
100

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button