mirror of https://github.com/sundowndev/http.git
fix: correctly handle `proxyHeaders: false` (#17)
parent
e079ef024e
commit
15274cbee1
|
@ -96,7 +96,8 @@ export default (ctx, inject) => {
|
||||||
// Defaults
|
// Defaults
|
||||||
const defaults = {
|
const defaults = {
|
||||||
retry: <%= parseInt(options.retry) %>,
|
retry: <%= parseInt(options.retry) %>,
|
||||||
prefixUrl
|
prefixUrl,
|
||||||
|
headers: {}
|
||||||
}
|
}
|
||||||
|
|
||||||
<% if (options.proxyHeaders) { %>
|
<% if (options.proxyHeaders) { %>
|
||||||
|
|
Loading…
Reference in New Issue