|
|
|
@ -599,7 +599,7 @@ func TestParseWrappedRequest(t *testing.T) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func TestParseWrappedGetRequestWithJsonHeader(t *testing.T) {
|
|
|
|
|
r, err := http.NewRequest(http.MethodGet, "http://hello.com/kevin/2017", nil)
|
|
|
|
|
r, err := http.NewRequest(http.MethodGet, "http://hello.com/kevin/2017", bytes.NewReader(nil))
|
|
|
|
|
assert.Nil(t, err)
|
|
|
|
|
r.Header.Set(httpx.ContentType, header.JsonContentType)
|
|
|
|
|
|
|
|
|
@ -632,7 +632,7 @@ func TestParseWrappedGetRequestWithJsonHeader(t *testing.T) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func TestParseWrappedHeadRequestWithJsonHeader(t *testing.T) {
|
|
|
|
|
r, err := http.NewRequest(http.MethodHead, "http://hello.com/kevin/2017", nil)
|
|
|
|
|
r, err := http.NewRequest(http.MethodHead, "http://hello.com/kevin/2017", bytes.NewReader(nil))
|
|
|
|
|
assert.Nil(t, err)
|
|
|
|
|
r.Header.Set(httpx.ContentType, header.JsonContentType)
|
|
|
|
|
|
|
|
|
|