-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
134d637
commit 32e47e4
Showing
1 changed file
with
1 addition
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# connect-requires-json | ||
|
||
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/) | ||
[![Build Status](https://travis-ci.org/gillesdemey/connect-require-json.svg?branch=master)](https://travis-ci.org/gillesdemey/connect-require-json) | ||
[![Coverage Status](https://coveralls.io/repos/github/gillesdemey/connect-require-json/badge.svg?branch=master)](https://coveralls.io/github/gillesdemey/connect-require-json?branch=master) | ||
|
||
This middleware will validate incoming request bodies, throwing a `400` when the body is empty and `415` when the `Content-Type` header does not contain `json`. |