From 549042160fef137543eca19a97f8851ba0652c0a Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Fri, 16 Feb 2018 13:41:21 +1100 Subject: [PATCH] requestHeaders --> headers --- atom/browser/auto_updater_mac.mm | 2 +- docs/api/auto-updater.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/browser/auto_updater_mac.mm b/atom/browser/auto_updater_mac.mm index 9398ad9b7e6..8f1a6e43bcd 100644 --- a/atom/browser/auto_updater_mac.mm +++ b/atom/browser/auto_updater_mac.mm @@ -48,7 +48,7 @@ void AutoUpdater::SetFeedURL(mate::Arguments* args) { args->ThrowError("Expected options object to contain a 'url' string property in setFeedUrl call"); return; } - opts.Get("requestHeaders", &requestHeaders); + opts.Get("headers", &requestHeaders); opts.Get("serverType", &serverType); if (serverType != "default" && serverType != "json") { args->ThrowError("Expected serverType to be 'default' or 'json'"); diff --git a/docs/api/auto-updater.md b/docs/api/auto-updater.md index 8a907fefe6d..66bcf19dbe0 100644 --- a/docs/api/auto-updater.md +++ b/docs/api/auto-updater.md @@ -92,7 +92,7 @@ The `autoUpdater` object has the following methods: * `options` Object * `url` String - * `requestHeaders` Object (optional) _macOS_ - HTTP request headers. + * `headers` Object (optional) _macOS_ - HTTP request headers. * `serverType` String (optional) _macOS_ - Either `json` or `default`, see the [Squirrel.Mac][squirrel-mac] README for more information.