Clean up
This commit is contained in:
parent
41c7ed0995
commit
88c6098495
1 changed files with 1 additions and 2 deletions
|
|
@ -27,7 +27,6 @@ export interface SSEServerTransportOptions {
|
|||
|
||||
/**
|
||||
* Disable DNS rebinding protection entirely (overrides allowedHosts and allowedOrigins).
|
||||
* Default is false.
|
||||
*/
|
||||
disableDnsRebindingProtection?: boolean;
|
||||
}
|
||||
|
|
@ -156,7 +155,7 @@ export class SSEServerTransport implements Transport {
|
|||
try {
|
||||
const ct = contentType.parse(req.headers["content-type"] ?? "");
|
||||
if (ct.type !== "application/json") {
|
||||
throw new Error(`Unsupported content-type: ${ct.type}`);
|
||||
throw new Error(`Unsupported content-type: ${ct}`);
|
||||
}
|
||||
|
||||
body = parsedBody ?? await getRawBody(req, {
|
||||
|
|
|
|||
Loading…
Reference in a new issue