File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -216,6 +216,10 @@ export class InterceptorService extends Http {
216216 this . _realResponseObservableTransformer = value ;
217217 }
218218
219+ public newHttpNative ( ) : HttpDirect {
220+ return new this . HttpDirect ( ) ;
221+ }
222+
219223 /** Private functions **/
220224 private httpRequest (
221225 request : InterceptorRequest ,
@@ -264,7 +268,7 @@ export class InterceptorService extends Http {
264268 response$ = this . _realResponseObservableTransformer . transform (
265269 response$ ,
266270 transformedRequest ,
267- new this . HttpDirect ( ) ,
271+ this . newHttpNative ( ) ,
268272 this
269273 ) ;
270274 }
@@ -551,7 +555,7 @@ export class InterceptorService extends Http {
551555 * This interface allows consumers to make calls directly to HTTP calls
552556 * without being intercepted by {@code InterceptorService}; i.e `this`
553557 */
554- public get HttpDirect ( ) {
558+ private get HttpDirect ( ) {
555559 const interceptorService = this ;
556560
557561 return class implements HttpDirect {
You can’t perform that action at this time.
0 commit comments