|
@ -18,7 +18,7 @@ type MockClient struct { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (m *MockClient) Do(req *http.Request) (*http.Response, error) { |
|
|
func (m *MockClient) Do(req *http.Request) (*http.Response, error) { |
|
|
n, originalSize, err := needle.CreateNeedleFromRequest(req, 1024*1024) |
|
|
|
|
|
|
|
|
n, originalSize, err := needle.CreateNeedleFromRequest(req, false, 1024*1024) |
|
|
if m.needleHandling != nil { |
|
|
if m.needleHandling != nil { |
|
|
m.needleHandling(n, originalSize, err) |
|
|
m.needleHandling(n, originalSize, err) |
|
|
} |
|
|
} |
|
|