Skip to content

smcstewart/itty-router-without-content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

itty-router-without-content

Repro of issue with withContent.

To run:

  1. Install and run dev server (uses npm below, but use whatever package manager you like):
git clone [email protected]:smcstewart/itty-router-without-content.git
cd itty-router-without-content
npm install
npm run dev
  1. Open a new terminal and run cURL (or whatever else you like: e.g. httpie) and perhaps something like jq for a pretty-printed response:
curl -v --request POST \
  --url http://localhost:8787/ \
  --header 'Content-Type: application/json'
  1. You will see a HTTP 500 Internal Server Error and the following JSON response:
{
  "status": 500,
  "error": "Unexpected end of JSON input"
}

About

Repro of issue with `withContent`

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published