Fix type issue in requestInit
This commit is contained in:
@@ -267,7 +267,7 @@ export class SSESession extends EventEmitter<SSESessionEventMap> {
|
|||||||
const fetchOptions: RequestInit = {
|
const fetchOptions: RequestInit = {
|
||||||
method,
|
method,
|
||||||
headers: headers || {},
|
headers: headers || {},
|
||||||
body: fetchBody,
|
body: fetchBody ?? null,
|
||||||
signal: controller.signal,
|
signal: controller.signal,
|
||||||
cache: 'no-store',
|
cache: 'no-store',
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user