Permalink
Browse files

Merge pull request #391 from MartinNowack/master

Request secure cookie transmission for HTTPS
  • Loading branch information...
2 parents 16261f7 + eda4426 commit eba1b781825477320c85f8357c0401b352e19353 @DarthGandalf DarthGandalf committed Aug 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/HTTPSock.cpp
View
@@ -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) {

0 comments on commit eba1b78

Please sign in to comment.