Fossil SCM

Use \r\n after Proxy-Authorization in HTTP headers. Ticket [da3fef0b21c37d]

drh 2011-05-13 14:01 trunk
Commit 1b823e12763ff22530dff0021653e37f27b93c1e
1 file changed +1 -1
+1 -1
--- src/http.c
+++ src/http.c
@@ -100,11 +100,11 @@
100100
}else{
101101
zSep = "/";
102102
}
103103
blob_appendf(pHdr, "POST %s%sxfer/xfer HTTP/1.0\r\n", g.urlPath, zSep);
104104
if( g.urlProxyAuth ){
105
- blob_appendf(pHdr, "Proxy-Authorization: %s\n", g.urlProxyAuth);
105
+ blob_appendf(pHdr, "Proxy-Authorization: %s\r\n", g.urlProxyAuth);
106106
}
107107
if( g.urlPasswd && g.urlUser && g.urlPasswd[0]=='#' ){
108108
char *zCredentials = mprintf("%s:%s", g.urlUser, &g.urlPasswd[1]);
109109
char *zEncoded = encode64(zCredentials, -1);
110110
blob_appendf(pHdr, "Authorization: Basic %s\r\n", zEncoded);
111111
--- src/http.c
+++ src/http.c
@@ -100,11 +100,11 @@
100 }else{
101 zSep = "/";
102 }
103 blob_appendf(pHdr, "POST %s%sxfer/xfer HTTP/1.0\r\n", g.urlPath, zSep);
104 if( g.urlProxyAuth ){
105 blob_appendf(pHdr, "Proxy-Authorization: %s\n", g.urlProxyAuth);
106 }
107 if( g.urlPasswd && g.urlUser && g.urlPasswd[0]=='#' ){
108 char *zCredentials = mprintf("%s:%s", g.urlUser, &g.urlPasswd[1]);
109 char *zEncoded = encode64(zCredentials, -1);
110 blob_appendf(pHdr, "Authorization: Basic %s\r\n", zEncoded);
111
--- src/http.c
+++ src/http.c
@@ -100,11 +100,11 @@
100 }else{
101 zSep = "/";
102 }
103 blob_appendf(pHdr, "POST %s%sxfer/xfer HTTP/1.0\r\n", g.urlPath, zSep);
104 if( g.urlProxyAuth ){
105 blob_appendf(pHdr, "Proxy-Authorization: %s\r\n", g.urlProxyAuth);
106 }
107 if( g.urlPasswd && g.urlUser && g.urlPasswd[0]=='#' ){
108 char *zCredentials = mprintf("%s:%s", g.urlUser, &g.urlPasswd[1]);
109 char *zEncoded = encode64(zCredentials, -1);
110 blob_appendf(pHdr, "Authorization: Basic %s\r\n", zEncoded);
111

Keyboard Shortcuts

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