Skip to content

Fix a bug when setting host header in httpjson#634

Closed
reginaldosousa wants to merge 1 commit intoinfluxdata:masterfrom
reginaldosousa:fix-httpjson-host-header
Closed

Fix a bug when setting host header in httpjson#634
reginaldosousa wants to merge 1 commit intoinfluxdata:masterfrom
reginaldosousa:fix-httpjson-host-header

Conversation

@reginaldosousa
Copy link
Contributor

When setting request Host Header with req.Header.Add(k, v) the host is ignored. The correct is to set req.Host = "value"

@sparrc
Copy link
Contributor

sparrc commented Feb 3, 2016

thanks @reginaldosousa

@sparrc sparrc closed this in 9406961 Feb 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants