Fixed the URL being passed to the OAuth package

This commit is contained in:
Christopher Allford 2020-06-30 16:01:47 -07:00
parent 603a5e7812
commit 3e2e03d48a
1 changed files with 1 additions and 1 deletions

View File

@ -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,