mirror of
https://github.com/bastienwirtz/homer.git
synced 2026-06-22 21:20:50 +02:00
fix: empty / null headers issue
This commit is contained in:
@@ -19,7 +19,7 @@ export default {
|
||||
options.credentials = "include";
|
||||
}
|
||||
|
||||
if (this.proxy?.headers) {
|
||||
if (this.proxy?.headers && !!this.proxy.headers) {
|
||||
options.headers = this.proxy.headers;
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ export default {
|
||||
}
|
||||
|
||||
// Each item can have their own headers
|
||||
if (this.item.headers !== undefined) {
|
||||
if (this.item.headers !== undefined && !!this.item.headers) {
|
||||
options.headers = this.item.headers;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user