Skip to content

Commit

Permalink
refactor: use lowercase response with HTTP long-polling
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Sep 14, 2022
1 parent 3b1eb82 commit c8c48a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/engine.io/lib/transports/polling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class Polling extends Transport {
}

return Promise.resolve(
new Response("OK", {
new Response("ok", {
status: 200,
headers: responseHeaders,
}),
Expand Down
4 changes: 2 additions & 2 deletions packages/engine.io/test/close.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ describe("close", () => {
assertEquals(await pollResponse.text(), "6");

assertEquals(dataResponse.status, 200);
assertEquals(await dataResponse.text(), "OK");
assertEquals(await dataResponse.text(), "ok");

partialDone();
});
Expand Down Expand Up @@ -262,7 +262,7 @@ describe("close", () => {

const body = await dataResponse.text();

assertEquals(body, "OK");
assertEquals(body, "ok");

partialDone();
});
Expand Down

0 comments on commit c8c48a4

Please sign in to comment.