Skip to content
This repository has been archived by the owner on Oct 2, 2022. It is now read-only.

Commit

Permalink
1.0.1: Explicitly setting the Accept header
Browse files Browse the repository at this point in the history
This release explicitly adds the "Accept" header on client requests.
  • Loading branch information
Janos Pasztor committed Apr 9, 2021
1 parent 3361893 commit 193c837
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.0.1: Explicitly setting the `Accept` header

This release explicitly adds the "Accept" header on client requests.

## 1.0.0: Initial stable version

This release tags the first stable version for the ContainerSSH 0.4.0 release.
Expand Down
1 change: 1 addition & 0 deletions client_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ func (c *client) createRequest(method string, path string, requestBody interface
return nil, err
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Accept", "application/json")
return req, nil
}

Expand Down

0 comments on commit 193c837

Please sign in to comment.