Skip to content

Commit

Permalink
NOISSUE - Fix HTTP header for Things and Channels creation (#939)
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
  • Loading branch information
manuio committed Nov 7, 2019
1 parent ee92413 commit e4fce8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions things/api/things/http/responses.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
}
}

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

Expand Down

0 comments on commit e4fce8c

Please sign in to comment.