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 5f1e1b2 commit 2ab7f42Copy full SHA for 2ab7f42
src/transports/streamableHttp.ts
@@ -48,7 +48,7 @@ export class StreamableHttpRunner extends TransportRunnerBase {
48
for (const [key, value] of Object.entries(this.userConfig.httpHeaders)) {
49
const header = req.headers[key];
50
if (!header || header !== value) {
51
- res.sendStatus(403).json({ error: `Invalid ${key} header` });
+ res.status(403).send({ error: `Invalid value for header "${key}"` });
52
return;
53
}
54
0 commit comments