Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion http-server/gren.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dependencies": {
"direct": {
"gren-lang/core": "6.0.0",
"gren-lang/node": "5.0.0"
"gren-lang/node": "5.0.4"
},
"indirect": {
"gren-lang/url": "5.0.0"
Expand Down
4 changes: 2 additions & 2 deletions http-server/test/requests.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ describe("Requests", () => {
assert.equal(res1.headers["content-type"], "text/html");
assert.equal(res1.text, "You posted: some data");

const res2 = await request(url).put("/howdy");
const res2 = await request(url).put("/howdy?with=params");
assert.equal(res2.headers["content-type"], "text/html");
assert.equal(res2.text, "Not found: PUT /howdy");
assert.equal(res2.text, "Not found: PUT http://localhost:3000/howdy?with=params");
});

// Can't actually test this because node:http doesn't support custom methods.
Expand Down