diff options
author | Andrew Moss <1043609+amoss@users.noreply.github.com> | 2020-04-22 16:51:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-22 16:51:19 +0200 |
commit | 22f918af6e7bd1e8da57e3d2c543780554dc56e9 (patch) | |
tree | 504ddf9ab5164d2b477701865adc79628490d082 /claim | |
parent | 51c44bb45fd6f4534fb3661f4d39093bb0386e18 (diff) |
Add http headers to responses (#8760)
The MQTT payloads for responses to API requests from the cloud now include a headers field with the raw http headers encoded into unicode. This exposes the `Date` and `Expired` fields to the cloud backend.
Diffstat (limited to 'claim')
-rwxr-xr-x | claim/netdata-claim.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/claim/netdata-claim.sh.in b/claim/netdata-claim.sh.in index 913ca35c77..50ee660d37 100755 --- a/claim/netdata-claim.sh.in +++ b/claim/netdata-claim.sh.in @@ -101,7 +101,7 @@ TOKEN="unknown" URL_BASE="https://netdata.cloud" ID="unknown" ROOMS="" -HOSTNAME=$(hostname) +[ -z "$HOSTNAME" ] && HOSTNAME=$(hostname) CLOUD_CERTIFICATE_FILE="${CLAIMING_DIR}/cloud_fullchain.pem" VERBOSE=0 INSECURE=0 |