-
Notifications
You must be signed in to change notification settings - Fork 238
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
I started a server with the following code.
import { Application, Router } from "https://deno.land/x/oak/mod.ts";
async function server() {
const app = new Application();
const router = new Router();
router.post("/json", async ctx => {
ctx.response.body = "test";
});
app.use(router.routes());
await app.listen(`0.0.0.0:5000`);
}
server();But when I submit requests usingPOST and application/json. The first time I get the right response, however, all subsequent requests will get 404 errors
However, when I use curl access, it seems normal. It only happens on the browser and postman. I guess it's related to the reuse of connections.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working