diff options
Diffstat (limited to 'shared/server-commands/shared/abstract-command.ts')
-rw-r--r-- | shared/server-commands/shared/abstract-command.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shared/server-commands/shared/abstract-command.ts b/shared/server-commands/shared/abstract-command.ts index 1b53a5330..ca4ffada9 100644 --- a/shared/server-commands/shared/abstract-command.ts +++ b/shared/server-commands/shared/abstract-command.ts | |||
@@ -33,6 +33,7 @@ interface InternalCommonCommandOptions extends OverrideCommandOptions { | |||
33 | host?: string | 33 | host?: string |
34 | headers?: { [ name: string ]: string } | 34 | headers?: { [ name: string ]: string } |
35 | requestType?: string | 35 | requestType?: string |
36 | responseType?: string | ||
36 | xForwardedFor?: string | 37 | xForwardedFor?: string |
37 | } | 38 | } |
38 | 39 | ||
@@ -169,7 +170,7 @@ abstract class AbstractCommand { | |||
169 | } | 170 | } |
170 | 171 | ||
171 | protected buildCommonRequestOptions (options: InternalCommonCommandOptions) { | 172 | protected buildCommonRequestOptions (options: InternalCommonCommandOptions) { |
172 | const { url, path, redirects, contentType, accept, range, host, headers, requestType, xForwardedFor } = options | 173 | const { url, path, redirects, contentType, accept, range, host, headers, requestType, xForwardedFor, responseType } = options |
173 | 174 | ||
174 | return { | 175 | return { |
175 | url: url ?? this.server.url, | 176 | url: url ?? this.server.url, |
@@ -185,6 +186,7 @@ abstract class AbstractCommand { | |||
185 | accept, | 186 | accept, |
186 | headers, | 187 | headers, |
187 | type: requestType, | 188 | type: requestType, |
189 | responseType, | ||
188 | xForwardedFor | 190 | xForwardedFor |
189 | } | 191 | } |
190 | } | 192 | } |