Skip to content

Commit

Permalink
startsWith
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith committed Jul 9, 2019
1 parent 98325aa commit d07d832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gaxios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export class Gaxios {

// baseUrl has been deprecated, remove in 2.0
const baseUrl = opts.baseUrl || opts.baseURL;
if (baseUrl && !opts.url.includes(baseUrl)) {
if (baseUrl && !opts.url.startsWith(baseUrl)) {
opts.url = baseUrl + opts.url;
}

Expand Down

0 comments on commit d07d832

Please sign in to comment.