diff options
Diffstat (limited to 'ios/net')
-rw-r--r-- | ios/net/crn_http_protocol_handler.mm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ios/net/crn_http_protocol_handler.mm b/ios/net/crn_http_protocol_handler.mm index 189861c..1638eab 100644 --- a/ios/net/crn_http_protocol_handler.mm +++ b/ios/net/crn_http_protocol_handler.mm @@ -583,9 +583,8 @@ void HttpProtocolHandlerCore::Destruct(const HttpProtocolHandlerCore* x) { void HttpProtocolHandlerCore::SetLoadFlags() { DCHECK(thread_checker_.CalledOnValidThread()); + int load_flags = LOAD_NORMAL; - int load_flags = LOAD_VERIFY_EV_CERT; - // TODO(droger) Support MAIN_FRAME and SUB_FRAME flags. if (![request_ HTTPShouldHandleCookies]) load_flags |= LOAD_DO_NOT_SEND_COOKIES | LOAD_DO_NOT_SAVE_COOKIES; @@ -625,8 +624,8 @@ void HttpProtocolHandlerCore::SetLoadFlags() { case NSURLRequestReloadRevalidatingCacheData: load_flags |= LOAD_VALIDATE_CACHE; break; - default: - // For the NSURLRequestUseProtocolCachePolicy case. + case NSURLRequestUseProtocolCachePolicy: + // Do nothing, normal load. break; } } |