jarcoal / httpmock

HTTP mocking for Golang
http://godoc.org/github.com/jarcoal/httpmock
MIT License
1.93k stars 103 forks source link

Update response status to have expected contract #84

Closed amasare closed 4 years ago

amasare commented 4 years ago

Contract should match:

type Response struct {
    Status     string // e.g. "200 OK"
    StatusCode int    // e.g. 200
         ...
}

according to https://golang.org/src/net/http/response.go?s=731:4298#L25

Issue

https://github.com/jarcoal/httpmock/issues/83

maxatome commented 4 years ago

Thanks.

maxatome commented 4 years ago

Could you do another PR on v1 branch, please? master branch is ni longer in use.

amasare commented 4 years ago

Will do!