Header does not set if header exists and EnableNetworking()
kondratev opened this issue · comments
kondratev commented
test run :
https://github.com/h2non/gock/blob/master/_examples/networking/networking.go
result:
Status: 201
Server header: gunicorn/19.9.0
Body: {
"args": {},
"headers": {
"Accept-Encoding": "gzip",
"Host": "httpbin.org",
"User-Agent": "Go-http-client/1.1",
"X-Amzn-Trace-Id": "Root=1-63d77cda-2dea0e663f80f45a1c8341dc"
},
"origin": "213.151.27.169",
"url": "http://httpbin.org/get"
}
env:
$ go version
go version go1.19.3 linux/amd64
$ go mod graph
test github.com/h2non/gock@v1.2.0
test github.com/h2non/parth@v0.0.0-20190131123155-b4df798d6542
github.com/h2non/gock@v1.2.0 github.com/h2non/parth@v0.0.0-20190131123155-b4df798d6542
github.com/h2non/gock@v1.2.0 github.com/nbio/st@v0.0.0-20140626010706-e9e8d9816f32