Skip to content

Commit 7163649

Browse files
authored
Revert "fix(server): application/json header for notifictions (#1373)"
This reverts commit 8b6e455.
1 parent 5ce4b5e commit 7163649

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

.changeset/strong-hairs-study.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/server/src/server/webStandardStreamableHttp.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -667,12 +667,7 @@ export class WebStandardStreamableHTTPServerTransport implements Transport {
667667
for (const message of messages) {
668668
this.onmessage?.(message, { authInfo: options?.authInfo, requestInfo });
669669
}
670-
return new Response(null, {
671-
status: 202,
672-
headers: {
673-
'Content-Type': 'application/json'
674-
}
675-
});
670+
return new Response(null, { status: 202 });
676671
}
677672

678673
// The default behavior is to use SSE streaming

packages/server/test/server/streamableHttp.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,6 @@ describe.each(zodTestMatrix)('$zodVersionLabel', (entry: ZodMatrixEntry) => {
651651
const response = await sendPostRequest(baseUrl, batchNotifications, sessionId);
652652

653653
expect(response.status).toBe(202);
654-
expect(response.headers.get('content-type')).toBe('application/json');
655654
});
656655

657656
it('should handle batch request messages with SSE stream for responses', async () => {

0 commit comments

Comments
 (0)