Bug 1365027 - Add $httpMethod=POST to the query string of Safe Browsing pver4 requests. r=francois

MozReview-Commit-ID: FvFFTcPzTn8

--HG--
extra : rebase_source : 835056a5db58700465a3d5c6bc1f83d0807debac
This commit is contained in:
DimiL 2017-05-16 16:50:55 +08:00
Родитель 05ac7caff3
Коммит d9614f5086
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -5263,9 +5263,9 @@ pref("browser.safebrowsing.provider.google.reportMalwareMistakeURL", "https://%L
// Prefs for v4.
pref("browser.safebrowsing.provider.google4.pver", "4");
pref("browser.safebrowsing.provider.google4.lists", "goog-badbinurl-proto,goog-downloadwhite-proto,goog-phish-proto,googpub-phish-proto,goog-malware-proto,goog-unwanted-proto");
pref("browser.safebrowsing.provider.google4.updateURL", "https://safebrowsing.googleapis.com/v4/threatListUpdates:fetch?$ct=application/x-protobuf&key=%GOOGLE_API_KEY%");
pref("browser.safebrowsing.provider.google4.updateURL", "https://safebrowsing.googleapis.com/v4/threatListUpdates:fetch?$ct=application/x-protobuf&key=%GOOGLE_API_KEY%&$httpMethod=POST");
#ifdef NIGHTLY_BUILD
pref("browser.safebrowsing.provider.google4.gethashURL", "https://safebrowsing.googleapis.com/v4/fullHashes:find?$ct=application/x-protobuf&key=%GOOGLE_API_KEY%");
pref("browser.safebrowsing.provider.google4.gethashURL", "https://safebrowsing.googleapis.com/v4/fullHashes:find?$ct=application/x-protobuf&key=%GOOGLE_API_KEY%&$httpMethod=POST");
#else
pref("browser.safebrowsing.provider.google4.gethashURL", "");
#endif // NIGHTLY_BUILD