Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #391 from MartinNowack/master

Request secure cookie transmission for HTTPS
  • Loading branch information...
commit eba1b781825477320c85f8357c0401b352e19353 2 parents 16261f7 + eda4426
@DarthGandalf DarthGandalf authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/HTTPSock.cpp
View
2  src/HTTPSock.cpp
@@ -645,7 +645,7 @@ bool CHTTPSock::PrintHeader(off_t uContentLength, const CString& sContentType, u
MCString::iterator it;
for (it = m_msResponseCookies.begin(); it != m_msResponseCookies.end(); ++it) {
- Write("Set-Cookie: " + it->first.Escape_n(CString::EURL) + "=" + it->second.Escape_n(CString::EURL) + "; path=/;\r\n");
+ Write("Set-Cookie: " + it->first.Escape_n(CString::EURL) + "=" + it->second.Escape_n(CString::EURL) + "; path=/;" + (GetSSL() ? "Secure;" : "") + "\r\n");
}
for (it = m_msHeaders.begin(); it != m_msHeaders.end(); ++it) {
Please sign in to comment.
Something went wrong with that request. Please try again.