Skip to content

Commit

Permalink
Merge pull request #7 from influxdata/6-content-type
Browse files Browse the repository at this point in the history
Set content type while joining fixes #6
  • Loading branch information
fntlnz authored Apr 27, 2018
2 parents eaca900 + 6d77caa commit 46914af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func (b *HTTPBackend) Join(ifname string, p Peer) error {
if err != nil {
return err
}
req.Header.Add("Content-Type", "application/json")

if b.BasicAuth != nil {
req.SetBasicAuth(b.BasicAuth.Username, b.BasicAuth.Password)
Expand Down

0 comments on commit 46914af

Please sign in to comment.