fix example statusCode
This commit is contained in:
parent
f908e383cd
commit
b2c2ff84fe
|
@ -3,7 +3,7 @@ import { HTTPServer } from "../http_server.ts";
|
|||
|
||||
const httpServer = new HTTPServer();
|
||||
httpServer.add("GET", "/", (_req, rep) => {
|
||||
rep.statusCode = 200;
|
||||
rep.statusCode = Status.Teapot;
|
||||
rep.addHeader("working", "true")
|
||||
return JSON.stringify(
|
||||
{
|
||||
|
|
Reference in New Issue
Block a user