diff options
author | 2022-04-04 06:37:39 -0700 | |
---|---|---|
committer | 2022-04-04 06:37:39 -0700 | |
commit | 9554dd1c336a204c7808ac03125a876b03556e46 (patch) | |
tree | c35068107b46ddbcf48ae1beca95a16017473ff1 /examples | |
parent | 7fd12ca3ae2bf5bc98c45777af4e1e657fcd50f0 (diff) | |
download | bun-9554dd1c336a204c7808ac03125a876b03556e46.tar.gz bun-9554dd1c336a204c7808ac03125a876b03556e46.tar.zst bun-9554dd1c336a204c7808ac03125a876b03556e46.zip |
fix https
Diffstat (limited to 'examples')
-rw-r--r-- | examples/bun/html-rewriter.ts | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/examples/bun/html-rewriter.ts b/examples/bun/html-rewriter.ts index b5811f4e6..2b370c5ed 100644 --- a/examples/bun/html-rewriter.ts +++ b/examples/bun/html-rewriter.ts @@ -5,7 +5,7 @@ Bun.serve({ return new Response( "Enter a path that starts with https:// or http://\n", { - status: 404, + status: 400, } ); } @@ -30,12 +30,8 @@ Bun.serve({ }, // this is called when fetch() throws or rejects - error(err: Error) { - return new Response("uh oh! :(\n" + String(err.toString()), { - status: 500, - headers: { "Content-Type": "text/plain" }, - }); - }, + // error(err: Error) { + // }, // this boolean enables the bun's default error handler // sometime after the initial release, it will auto reload as well |