http
http copied to clipboard
Default options are ignored when type is object
When an option is an object (e.i.: headers, queryParams), the defaults are always overridden if defined again.
Ex:

I think the culprit is located here: https://github.com/nuxt/http/blob/1b9b21e6e51df55079c90c07cc129408912ab609/lib/plugin.js#L85
After updating ky + replace this line by:
const _options = defu(options, this._defaults)
everything is back in order