Fixed the URL being passed to the OAuth package
This commit is contained in:
parent
603a5e7812
commit
3e2e03d48a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue