tmornini/http-spec

Issue with http-spec not catching wrong formatting

Opened this issue · 0 comments

> POST /v1/recipes HTTP/1.1
> Authorization: valid token
>
> {
>   "name": "Test recipe",
>   "description": "This is my test recipe",
<   "creation_source": "iOS",
>   "temperature": 100,
>   "unit": "F",
>   "time": 120,
>   "image_small": "small",
>   "image_medium": "medium",
>   "image_hero": "hero",
>   "servings": 2,
>   "serving_size": "a buttload",
>   "preparation_time": 123
> }

The above request works despite the following line:
< "creation_source": "iOS",

This line starts with a < when all other lines in the request start with a >