requestHeaders --> headers

This commit is contained in:
Samuel Attard 2018-02-16 13:41:21 +11:00
parent f84b8bbfdc
commit 549042160f
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ void AutoUpdater::SetFeedURL(mate::Arguments* args) {
args->ThrowError("Expected options object to contain a 'url' string property in setFeedUrl call"); args->ThrowError("Expected options object to contain a 'url' string property in setFeedUrl call");
return; return;
} }
opts.Get("requestHeaders", &requestHeaders); opts.Get("headers", &requestHeaders);
opts.Get("serverType", &serverType); opts.Get("serverType", &serverType);
if (serverType != "default" && serverType != "json") { if (serverType != "default" && serverType != "json") {
args->ThrowError("Expected serverType to be 'default' or 'json'"); args->ThrowError("Expected serverType to be 'default' or 'json'");

View file

@ -92,7 +92,7 @@ The `autoUpdater` object has the following methods:
* `options` Object * `options` Object
* `url` String * `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] * `serverType` String (optional) _macOS_ - Either `json` or `default`, see the [Squirrel.Mac][squirrel-mac]
README for more information. README for more information.