NOISSUE - Fix HTTP header for Things and Channels creation (#939)

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
This commit is contained in:
Manuel Imperiale 2019-11-07 13:57:47 +01:00 committed by GitHub
parent 3bfdcfe83c
commit 841b943718
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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.",
}
}