🐛 The server side request do not take compression
This commit is contained in:
@@ -5,7 +5,9 @@ export const useSolarNetwork = () => {
|
|||||||
const apiBase = useSolarNetworkUrl()
|
const apiBase = useSolarNetworkUrl()
|
||||||
|
|
||||||
// Forward cookies from the incoming request
|
// Forward cookies from the incoming request
|
||||||
const headers: HeadersInit = import.meta.server ? useRequestHeaders() : {}
|
const headers: HeadersInit = import.meta.server
|
||||||
|
? { ...useRequestHeaders(), "accept-encoding": "identity" }
|
||||||
|
: {}
|
||||||
|
|
||||||
return $fetch.create({
|
return $fetch.create({
|
||||||
baseURL: apiBase,
|
baseURL: apiBase,
|
||||||
|
|||||||
Reference in New Issue
Block a user