summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2020-05-26 08:28:55 -1000
committerSam Bingner <sam@bingner.com>2020-07-17 00:22:23 -1000
commit11cd82291bb7a02cafbb271c8416f8b59e1f1413 (patch)
tree2485e90791abd6adeb207673885999d98f7ebc7e
parente2d24a94231d99011c402b7902f3a25df12ac1a3 (diff)
Don't tell the server to set a cookie1.8.y+ios
-rw-r--r--methods/http.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/http.cc b/methods/http.cc
index 94c017d2a..ab62ee20c 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -365,7 +365,7 @@ int HttpMethod::Loop()
size_t cookie_len = strlen(cookie);
CFStringRef cookieString = CFStringCreateWithBytesNoCopy(kCFAllocatorDefault, (unsigned char *)cookie, cookie_len, kCFStringEncodingUTF8, false, kCFAllocatorDefault);
if (cookieString) {
- CFHTTPMessageSetHeaderFieldValue(hm, CFSTR("Set-Cookie"), cookieString);
+ CFHTTPMessageSetHeaderFieldValue(hm, CFSTR("Cookie"), cookieString);
CFRelease(cookieString);
}
}