From 3e2e03d48a6f0282247a628d0ae5bfffd5a72a50 Mon Sep 17 00:00:00 2001 From: Christopher Allford Date: Tue, 30 Jun 2020 16:01:47 -0700 Subject: [PATCH] Fixed the URL being passed to the OAuth package --- tests/e2e/factories/src/http/axios/api-auth-interceptor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/factories/src/http/axios/api-auth-interceptor.ts b/tests/e2e/factories/src/http/axios/api-auth-interceptor.ts index c2ef24280b8..53ec82985f9 100644 --- a/tests/e2e/factories/src/http/axios/api-auth-interceptor.ts +++ b/tests/e2e/factories/src/http/axios/api-auth-interceptor.ts @@ -57,7 +57,7 @@ export class APIAuthInterceptor { * @return {AxiosRequestConfig} The request with the additional authorization headers. */ private handleRequest( request: AxiosRequestConfig ): AxiosRequestConfig { - const url = request.baseURL || '' + request.url || ''; + const url = ( request.baseURL || '' ) + ( request.url || '' ); if ( url.startsWith( 'https' ) ) { request.auth = { username: this.oauth.consumer.key,