Skip to content

Commit 164e90b

Browse files
committed
bugfix
1 parent 07130a4 commit 164e90b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

httpclient/http.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,21 @@ func (c *ProdExecutor) SetRedirectPolicy(policy *func(req *http.Request, via []*
3737
// Mocking
3838

3939
type MockExecutor struct {
40-
lockedResponseCode int
40+
LockedResponseCode int
4141
}
4242

4343
func (m *MockExecutor) CloseIdleConnections() {
4444
panic("invalid function call")
4545
}
4646

4747
func (m *MockExecutor) Do(req *http.Request) (*http.Response, error) {
48-
statusString := http.StatusText(m.lockedResponseCode)
48+
statusString := http.StatusText(m.LockedResponseCode)
4949

5050
if statusString == "" {
51-
return nil, fmt.Errorf("unknown response code requested: %d", m.lockedResponseCode)
51+
return nil, fmt.Errorf("unknown response code requested: %d", m.LockedResponseCode)
5252
}
5353

54-
response := &http.Response{StatusCode: m.lockedResponseCode}
54+
response := &http.Response{StatusCode: m.LockedResponseCode}
5555

5656
return response, nil
5757
}

0 commit comments

Comments
 (0)