We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41c7ed0 commit 88c6098Copy full SHA for 88c6098
src/server/sse.ts
@@ -27,7 +27,6 @@ export interface SSEServerTransportOptions {
27
28
/**
29
* Disable DNS rebinding protection entirely (overrides allowedHosts and allowedOrigins).
30
- * Default is false.
31
*/
32
disableDnsRebindingProtection?: boolean;
33
}
@@ -156,7 +155,7 @@ export class SSEServerTransport implements Transport {
156
155
try {
157
const ct = contentType.parse(req.headers["content-type"] ?? "");
158
if (ct.type !== "application/json") {
159
- throw new Error(`Unsupported content-type: ${ct.type}`);
+ throw new Error(`Unsupported content-type: ${ct}`);
160
161
162
body = parsedBody ?? await getRawBody(req, {
0 commit comments