From 5e62aa4dcf3705915f456addc2929e0d2e756eb6 Mon Sep 17 00:00:00 2001 From: Sam Bingner Date: Tue, 26 May 2020 08:28:55 -1000 Subject: Don't tell the server to set a cookie --- methods/http.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- cgit v1.2.3