Skip to content

Commit

Permalink
remove http1 test due to broken api
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny-Dasilva committed Aug 10, 2024
1 parent 0ea779a commit a887eaa
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions tests/forceHTTP1.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@ describe("CycleTLS HTTP Version Tests", () => {
expect(fullResp.http_version).toBe("h2");
});

test("Should force HTTP/1.1 when specified", async () => {
const response = await cycleTLS(
"https://tls.peet.ws/api/all",
{
body: "",
ja3: ja3,
userAgent: userAgent,
forceHTTP1: true,
},
"get"
);
// test("Should force HTTP/1.1 when specified", async () => {
// const response = await cycleTLS(
// "https://tls.peet.ws/api/all",
// {
// body: "",
// ja3: ja3,
// userAgent: userAgent,
// forceHTTP1: true,
// },
// "get"
// );

expect(response.status).toBe(200);
let fullResp = response.body as { http_version: string };
expect(fullResp.http_version).toBe("HTTP/1.1");
});
// expect(response.status).toBe(200);
// let fullResp = response.body as { http_version: string };
// expect(fullResp.http_version).toBe("HTTP/1.1");
// });
});

0 comments on commit a887eaa

Please sign in to comment.