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