From 4d6473ab6a9e15b0b6a8d0439a79a910f9e462c6 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Thu, 6 Dec 2018 08:20:01 +0000 Subject: [PATCH] Introduce update.extra_http_headers tunable CL: Introduce update.extra_http_headers tunable PUBLISHED_FROM=efeb39562ee9f5dfd92395ce44fa2a6a02b652b9 --- README.md | 1 + mos.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index d88cdb5..0084686 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ The library adds the following object to the device configuration: "commit_timeout": 0, // OTA commit timeout "url": "", // HTTP URL to poll "interval": 0, // Polling interval + "extra_http_headers": "", // Extra HTTP request headers "ssl_ca_file": "ca.pem", // TLS CA cert file "ssl_client_cert_file": "", // TLS cert file "ssl_server_name": "", // TLS server name diff --git a/mos.yml b/mos.yml index c624a65..9359003 100644 --- a/mos.yml +++ b/mos.yml @@ -15,6 +15,7 @@ libs: config_schema: - ["update.url", "s", {title : "Fetch updates from here"}] - ["update.interval", "i", {title : "Check for updates this often"}] + - ["update.extra_http_headers", "s", {title : "Extra HTTP request headers"}] # Default CA bundle for updating from mongoose-os.com (and any other site that uses LetsEncrypt) and S3. - ["update.ssl_ca_file", "s", "ca.pem", {title : "TLS CA file"}]