diff options
Diffstat (limited to 'net/url_request/url_request_http_job.cc')
-rw-r--r-- | net/url_request/url_request_http_job.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc index b554d27..f773634 100644 --- a/net/url_request/url_request_http_job.cc +++ b/net/url_request/url_request_http_job.cc @@ -614,10 +614,12 @@ void URLRequestHttpJob::OnCanSetCookieCompleted(int policy) { if (request_ && request_->delegate()) { if (request_->context()->cookie_store()) { if (policy == ERR_ACCESS_DENIED) { + CookieOptions options; + options.set_include_httponly(); request_->delegate()->OnSetCookie( request_, response_cookies_[response_cookies_save_index_], - CookieOptions(), + options, true); } else if (policy == OK || policy == OK_FOR_SESSION_ONLY) { // OK to save the current response cookie now. |