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' ;
2
1
import { parseMultipart } from '@mjackson/multipart-parser' ;
3
2
import qs from 'qs' ;
4
3
@@ -29,14 +28,6 @@ export interface StreamQueryOptions {
29
28
}
30
29
31
30
export class StreamingAPI extends BaseYdbAPI {
32
- withCredentials ?: boolean ;
33
-
34
- constructor ( options : AxiosWrapperOptions ) {
35
- super ( options ) ;
36
-
37
- this . withCredentials = options . config ?. withCredentials ;
38
- }
39
-
40
31
async streamQuery < Action extends Actions > (
41
32
params : StreamQueryParams < Action > ,
42
33
options : StreamQueryOptions ,
@@ -73,7 +64,7 @@ export class StreamingAPI extends BaseYdbAPI {
73
64
method : 'POST' ,
74
65
signal : options . signal ,
75
66
headers,
76
- credentials : this . withCredentials ? 'include' : 'same-origin' ,
67
+ credentials : this . _axios . defaults . withCredentials ? 'include' : 'same-origin' ,
77
68
body : JSON . stringify ( body ) ,
78
69
} ) ;
79
70
You can’t perform that action at this time.
0 commit comments