File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ interface ConfigConstructor {
4949 terminalApiLocalEndpoint ?: string ;
5050 liveEndpointUrlPrefix ?: string ; // must be provided for LIVE integration
5151 region ?: RegionEnum ; // must be provided for Terminal API integration
52+ enable308Redirect ?: boolean ; // enabling redirect upon 308 response status
5253}
5354
5455const DEFAULT_TIMEOUT = 30000 ; // Default timeout value (30 sec)
@@ -67,6 +68,8 @@ class Config {
6768 public terminalApiLocalEndpoint ?: string ;
6869 public liveEndpointUrlPrefix ?: string ;
6970 public region ?: RegionEnum ;
71+ public enable308Redirect ?: boolean ;
72+
7073
7174 public constructor ( options : ConfigConstructor = { } ) {
7275 if ( options . username ) this . username = options . username ;
@@ -82,6 +85,8 @@ class Config {
8285 if ( options . terminalApiLocalEndpoint ) this . terminalApiLocalEndpoint = options . terminalApiLocalEndpoint ;
8386 if ( options . liveEndpointUrlPrefix ) this . liveEndpointUrlPrefix = options . liveEndpointUrlPrefix ;
8487 if ( options . region ) this . region = options . region ;
88+ this . enable308Redirect = options . enable308Redirect ?? true ;
89+
8590 }
8691
8792 /**
You can’t perform that action at this time.
0 commit comments