parent
0d391b66a3
commit
9406961125
|
@ -201,7 +201,11 @@ func (h *HttpJson) sendRequest(serverURL string) (string, float64, error) {
|
||||||
|
|
||||||
// Add header parameters
|
// Add header parameters
|
||||||
for k, v := range h.Headers {
|
for k, v := range h.Headers {
|
||||||
req.Header.Add(k, v)
|
if strings.ToLower(k) == "host" {
|
||||||
|
req.Host = v
|
||||||
|
} else {
|
||||||
|
req.Header.Add(k, v)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
|
|
Loading…
Reference in New Issue