Skip to content

Commit 88c6098

Browse files
committed
Clean up
1 parent 41c7ed0 commit 88c6098

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/server/sse.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export interface SSEServerTransportOptions {
2727

2828
/**
2929
* Disable DNS rebinding protection entirely (overrides allowedHosts and allowedOrigins).
30-
* Default is false.
3130
*/
3231
disableDnsRebindingProtection?: boolean;
3332
}
@@ -156,7 +155,7 @@ export class SSEServerTransport implements Transport {
156155
try {
157156
const ct = contentType.parse(req.headers["content-type"] ?? "");
158157
if (ct.type !== "application/json") {
159-
throw new Error(`Unsupported content-type: ${ct.type}`);
158+
throw new Error(`Unsupported content-type: ${ct}`);
160159
}
161160

162161
body = parsedBody ?? await getRawBody(req, {

0 commit comments

Comments
 (0)