File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -142,11 +142,11 @@ type Client struct {
142
142
proxyURL * url.URL
143
143
beforeRequest []RequestMiddleware
144
144
udBeforeRequest []RequestMiddleware
145
- udBeforeRequestLock sync.RWMutex
145
+ udBeforeRequestLock * sync.RWMutex
146
146
preReqHook PreRequestHook
147
147
successHooks []SuccessHook
148
148
afterResponse []ResponseMiddleware
149
- afterResponseLock sync.RWMutex
149
+ afterResponseLock * sync.RWMutex
150
150
requestLog RequestLogCallback
151
151
responseLog ResponseLogCallback
152
152
errorHooks []ErrorHook
@@ -1360,9 +1360,11 @@ func createClient(hc *http.Client) *Client {
1360
1360
XMLUnmarshal : xml .Unmarshal ,
1361
1361
HeaderAuthorizationKey : http .CanonicalHeaderKey ("Authorization" ),
1362
1362
1363
- jsonEscapeHTML : true ,
1364
- httpClient : hc ,
1365
- debugBodySizeLimit : math .MaxInt32 ,
1363
+ jsonEscapeHTML : true ,
1364
+ httpClient : hc ,
1365
+ debugBodySizeLimit : math .MaxInt32 ,
1366
+ udBeforeRequestLock : & sync.RWMutex {},
1367
+ afterResponseLock : & sync.RWMutex {},
1366
1368
}
1367
1369
1368
1370
// Logger
You can’t perform that action at this time.
0 commit comments