Allow filter to use any scheme
authorCheng Zhao <zcbenz@gmail.com>
Wed, 1 Feb 2017 06:06:40 +0000 (15:06 +0900)
committerKevin Sawicki <kevinsawicki@gmail.com>
Mon, 6 Feb 2017 18:34:30 +0000 (10:34 -0800)
atom/browser/api/atom_api_web_request.cc

index ff1e225..d8526e0 100644 (file)
@@ -26,6 +26,7 @@ struct Converter<URLPattern> {
     std::string pattern;
     if (!ConvertFromV8(isolate, val, &pattern))
       return false;
+    *out = URLPattern(URLPattern::SCHEME_ALL);
     return out->Parse(pattern) == URLPattern::PARSE_SUCCESS;
   }
 };