From 22f918af6e7bd1e8da57e3d2c543780554dc56e9 Mon Sep 17 00:00:00 2001 From: Andrew Moss <1043609+amoss@users.noreply.github.com> Date: Wed, 22 Apr 2020 16:51:19 +0200 Subject: 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. --- claim/netdata-claim.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'claim') 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 -- cgit v1.2.3