File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change 1- import type { AxiosWrapperOptions } from '@gravity-ui/axios-wrapper' ;
21import { parseMultipart } from '@mjackson/multipart-parser' ;
32import qs from 'qs' ;
43
@@ -29,14 +28,6 @@ export interface StreamQueryOptions {
2928}
3029
3130export class StreamingAPI extends BaseYdbAPI {
32- withCredentials ?: boolean ;
33-
34- constructor ( options : AxiosWrapperOptions ) {
35- super ( options ) ;
36-
37- this . withCredentials = options . config ?. withCredentials ;
38- }
39-
4031 async streamQuery < Action extends Actions > (
4132 params : StreamQueryParams < Action > ,
4233 options : StreamQueryOptions ,
@@ -73,7 +64,7 @@ export class StreamingAPI extends BaseYdbAPI {
7364 method : 'POST' ,
7465 signal : options . signal ,
7566 headers,
76- credentials : this . withCredentials ? 'include' : 'same-origin' ,
67+ credentials : this . _axios . defaults . withCredentials ? 'include' : 'same-origin' ,
7768 body : JSON . stringify ( body ) ,
7869 } ) ;
7970
You can’t perform that action at this time.
0 commit comments