Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with http-spec not catching wrong formatting #38

Open
andrewbeckman opened this issue Oct 1, 2018 · 0 comments
Open

Issue with http-spec not catching wrong formatting #38

andrewbeckman opened this issue Oct 1, 2018 · 0 comments

Comments

@andrewbeckman
Copy link

andrewbeckman commented Oct 1, 2018

> 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 >

@andrewbeckman andrewbeckman changed the title Issue with Issue with http-spec not catching wrong formatting Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant