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");
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'");

View file

@ -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.