Skip to content

Commit

Permalink
Fixing new HTTP2 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Jan 3, 2019
1 parent c7ce3e8 commit 776d366
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/valid_test2.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,16 @@ describe("Valid (HTTP2)", function () {
});

it("GET /sample (301 / redirect)", function () {
return tinyhttptest({http2: true, url: "http://localhost:" + port + "/sample"})
return tinyhttptest({http2: true, url: "https://localhost:" + port + "/sample"})
.expectStatus(301)
.expectHeader("location", "/sample/")
.end();
});

it("GET /sample/ (200 / HTML)", function () {
return tinyhttptest({http2: true, url: "http://localhost:" + port + "/sample/"})
return tinyhttptest({http2: true, url: "https://localhost:" + port + "/sample/"})
.expectStatus(200)
.expectHeader("allow", "GET, HEAD, OPTIONS")
.end().catch(err => console.error(err.stack));
.end();
});
});

0 comments on commit 776d366

Please sign in to comment.