requestHeaders --> headers
This commit is contained in:
parent
f84b8bbfdc
commit
549042160f
2 changed files with 2 additions and 2 deletions
|
@ -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'");
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue