File tree 1 file changed +10
-8
lines changed
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -133,14 +133,16 @@ export class HttpClient implements Server.IHttpClient {
133
133
const requestObj = request ( options ) ;
134
134
cleanupRequestData . req = requestObj ;
135
135
136
- stuckRequestTimerId = setTimeout ( ( ) => {
137
- clearTimeout ( stuckRequestTimerId ) ;
138
- stuckRequestTimerId = null ;
139
- if ( ! hasResponse ) {
140
- this . setResponseResult ( promiseActions , cleanupRequestData , { err : new Error ( HttpClient . STUCK_REQUEST_ERROR_MESSAGE ) } ) ;
141
- }
142
- } , options . timeout || HttpClient . STUCK_REQUEST_TIMEOUT ) ;
143
- cleanupRequestData . timers . push ( stuckRequestTimerId ) ;
136
+ if ( options . method !== "PUT" && options . method !== "POST" ) {
137
+ stuckRequestTimerId = setTimeout ( ( ) => {
138
+ clearTimeout ( stuckRequestTimerId ) ;
139
+ stuckRequestTimerId = null ;
140
+ if ( ! hasResponse ) {
141
+ this . setResponseResult ( promiseActions , cleanupRequestData , { err : new Error ( HttpClient . STUCK_REQUEST_ERROR_MESSAGE ) } ) ;
142
+ }
143
+ } , options . timeout || HttpClient . STUCK_REQUEST_TIMEOUT ) ;
144
+ cleanupRequestData . timers . push ( stuckRequestTimerId ) ;
145
+ }
144
146
145
147
requestObj
146
148
. on ( "error" , ( err : IHttpRequestError ) => {
You can’t perform that action at this time.
0 commit comments