File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { HttpMethod } from "../interfaces" ;
2
2
import axios , {
3
- AxiosInstance ,
4
- AxiosRequestConfig ,
5
- AxiosResponse ,
6
- InternalAxiosRequestConfig ,
3
+ AxiosHeaders ,
4
+ AxiosInstance ,
5
+ AxiosRequestConfig ,
6
+ AxiosResponse ,
7
+ InternalAxiosRequestConfig ,
7
8
} from "axios" ;
8
9
import * as fs from "fs" ;
9
10
import HttpsProxyAgent from "https-proxy-agent" ;
@@ -297,7 +298,7 @@ class RequestClient {
297
298
*/
298
299
validationInterceptor ( validationClient : ValidationClientOptions ) {
299
300
return function ( config : InternalAxiosRequestConfig ) {
300
- config . headers = config . headers || { } ;
301
+ config . headers = config . headers || new AxiosHeaders ( ) ;
301
302
try {
302
303
config . headers [ "Twilio-Client-Validation" ] = new ValidationToken (
303
304
validationClient
You can’t perform that action at this time.
0 commit comments