mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-02 12:47:41 +02:00
Fix image fetching error. For url like http://example.com/favicon.ico?ver=1.0 will be changed to http://example.com/favicon.ico?ver=1.0?ver=1.0 (#970)
This commit is contained in:
parent
b30c65dd89
commit
7a4c7a13eb
@ -238,7 +238,7 @@ function shimInit() {
|
||||
host: url.hostname,
|
||||
port: url.port,
|
||||
method: method,
|
||||
path: url.path + (url.query ? '?' + url.query : ''),
|
||||
path: url.pathname + (url.query ? '?' + url.query : ''),
|
||||
headers: headers,
|
||||
};
|
||||
|
||||
@ -316,4 +316,4 @@ function shimInit() {
|
||||
|
||||
}
|
||||
|
||||
module.exports = { shimInit };
|
||||
module.exports = { shimInit };
|
||||
|
Loading…
Reference in New Issue
Block a user