Fossil SCM

Use HTTP/1.1 for the sync protocol, not HTTP/1.0.

drh 2019-07-23 13:16 trunk
Commit c51b61ff1b4f1bd9b39dd8ada00d33fb4c2f217e189584bc1d0c91ce72b0160a
1 file changed +1 -1
+1 -1
--- src/http.c
+++ src/http.c
@@ -108,11 +108,11 @@
108108
if( i>0 && g.url.path[i-1]=='/' ){
109109
zSep = "";
110110
}else{
111111
zSep = "/";
112112
}
113
- blob_appendf(pHdr, "POST %s%s HTTP/1.0\r\n", g.url.path, zSep);
113
+ blob_appendf(pHdr, "POST %s%s HTTP/1.1\r\n", g.url.path, zSep);
114114
if( g.url.proxyAuth ){
115115
blob_appendf(pHdr, "Proxy-Authorization: %s\r\n", g.url.proxyAuth);
116116
}
117117
if( g.zHttpAuth && g.zHttpAuth[0] ){
118118
const char *zCredentials = g.zHttpAuth;
119119
--- src/http.c
+++ src/http.c
@@ -108,11 +108,11 @@
108 if( i>0 && g.url.path[i-1]=='/' ){
109 zSep = "";
110 }else{
111 zSep = "/";
112 }
113 blob_appendf(pHdr, "POST %s%s HTTP/1.0\r\n", g.url.path, zSep);
114 if( g.url.proxyAuth ){
115 blob_appendf(pHdr, "Proxy-Authorization: %s\r\n", g.url.proxyAuth);
116 }
117 if( g.zHttpAuth && g.zHttpAuth[0] ){
118 const char *zCredentials = g.zHttpAuth;
119
--- src/http.c
+++ src/http.c
@@ -108,11 +108,11 @@
108 if( i>0 && g.url.path[i-1]=='/' ){
109 zSep = "";
110 }else{
111 zSep = "/";
112 }
113 blob_appendf(pHdr, "POST %s%s HTTP/1.1\r\n", g.url.path, zSep);
114 if( g.url.proxyAuth ){
115 blob_appendf(pHdr, "Proxy-Authorization: %s\r\n", g.url.proxyAuth);
116 }
117 if( g.zHttpAuth && g.zHttpAuth[0] ){
118 const char *zCredentials = g.zHttpAuth;
119

Keyboard Shortcuts

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