summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2020-05-26 08:28:55 -1000
committerSam Bingner <sam@bingner.com>2020-05-26 08:28:55 -1000
commit5e62aa4dcf3705915f456addc2929e0d2e756eb6 (patch)
treedca2951ad4b4c616c01f49bbc4ce9b812b812b57
parentff830d9cbbc43cc48649089211907c9916eacf69 (diff)
Don't tell the server to set a cookie1.8.y+ios+json
-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);
}
}