Skip to content

Commit 18afe5c

Browse files
author
pooya parsa
committed
fix(module): browserBaseURL as empty string (fixes #303)
1 parent 6c5605d commit 18afe5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lib/module.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function axiosModule (_moduleOptions) {
5353
// Apply defaults
5454
const options = defu(moduleOptions, {
5555
baseURL: `http://${defaultHost}:${defaultPort}${prefix}`,
56-
browserBaseURL: null,
56+
browserBaseURL: undefined,
5757
credentials: false,
5858
debug: false,
5959
progress: true,
@@ -78,7 +78,7 @@ function axiosModule (_moduleOptions) {
7878
}
7979

8080
// Default browserBaseURL
81-
if (!options.browserBaseURL) {
81+
if (typeof options.browserBaseURL === 'undefined') {
8282
options.browserBaseURL = options.proxy ? prefix : options.baseURL
8383
}
8484

0 commit comments

Comments
 (0)