From e4fce8c2732b9b94a4bf1a421834dd6020637b2f Mon Sep 17 00:00:00 2001 From: Manuel Imperiale Date: Thu, 7 Nov 2019 13:57:47 +0100 Subject: [PATCH] NOISSUE - Fix HTTP header for Things and Channels creation (#939) Signed-off-by: Manuel Imperiale --- things/api/things/http/responses.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/things/api/things/http/responses.go b/things/api/things/http/responses.go index cdffa8a1d77..4d6993fe4ea 100644 --- a/things/api/things/http/responses.go +++ b/things/api/things/http/responses.go @@ -55,8 +55,8 @@ func (res thingRes) Code() int { func (res thingRes) Headers() map[string]string { if res.created { return map[string]string{ - "Location": fmt.Sprintf("/things/%s", res.ID), - "Warning Depreciated": "This endpoint will be depreciated in 0.11.0. It will be replaced with the bulk endpoint currently found at /things/bulk.", + "Location": fmt.Sprintf("/things/%s", res.ID), + "Warning-Deprecated": "This endpoint will be depreciated in 0.11.0. It will be replaced with the bulk endpoint currently found at /things/bulk.", } } @@ -143,8 +143,8 @@ func (res channelRes) Code() int { func (res channelRes) Headers() map[string]string { if res.created { return map[string]string{ - "Location": fmt.Sprintf("/channels/%s", res.ID), - "Warning Depreciated": "This endpoint will be depreciated in 0.11.0. It will be replaced with the bulk endpoint currently found at /channels/bulk.", + "Location": fmt.Sprintf("/channels/%s", res.ID), + "Warning-Deprecated": "This endpoint will be depreciated in 0.11.0. It will be replaced with the bulk endpoint currently found at /channels/bulk.", } }