summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--content/browser/service_worker/service_worker_request_handler.cc12
1 files changed, 1 insertions, 11 deletions
diff --git a/content/browser/service_worker/service_worker_request_handler.cc b/content/browser/service_worker/service_worker_request_handler.cc
index 7b615b3..cb8abc8 100644
--- a/content/browser/service_worker/service_worker_request_handler.cc
+++ b/content/browser/service_worker/service_worker_request_handler.cc
@@ -42,15 +42,6 @@ class ServiceWorkerRequestInterceptor
DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestInterceptor);
};
-bool IsMethodSupportedForAppCache(const std::string& method) {
- return (method == "GET") || (method == "HEAD");
-}
-
-bool IsSchemeAndMethodSupportedForAppCache(const net::URLRequest* request) {
- return request->url().SchemeIsHTTPOrHTTPS() &&
- IsMethodSupportedForAppCache(request->method());
-}
-
} // namespace
void ServiceWorkerRequestHandler::InitializeHandler(
@@ -60,9 +51,8 @@ void ServiceWorkerRequestHandler::InitializeHandler(
int process_id,
int provider_id,
ResourceType resource_type) {
- if (!IsSchemeAndMethodSupportedForAppCache(request)) {
+ if (!request->url().SchemeIsHTTPOrHTTPS())
return;
- }
if (!context_wrapper || !context_wrapper->context() ||
provider_id == kInvalidServiceWorkerProviderId) {