Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update apiController.js#158

Merged
gmetais merged 3 commits into
YellowLabTools:masterYellowLabTools/YellowLabTools:masterfrom
magikcypress:mastermagikcypress/YellowLabTools:masterCopy head branch name to clipboard
May 19, 2016
Merged

Update apiController.js#158
gmetais merged 3 commits into
YellowLabTools:masterYellowLabTools/YellowLabTools:masterfrom
magikcypress:mastermagikcypress/YellowLabTools:masterCopy head branch name to clipboard

Conversation

@magikcypress

Copy link
Copy Markdown
Contributor

Fix bad request with curl

$ curl -X POST --data "url=perdu.com" http://localhost:8383/api/runs/
Bad request

$ curl -X POST --data "url=perdu.com" http://localhost:8383/api/runs/
Moved Temporarily. Redirecting to /api/results/eesudz6s7n

Fix bad request with curl

$ curl -X POST --data "url=perdu.com" http://localhost:8383/api/runs/
Bad request

$ curl -X POST --data "url=perdu.com" http://localhost:8383/api/runs/
Moved Temporarily. Redirecting to /api/results/eesudz6s7n
@gmetais

gmetais commented May 18, 2016

Copy link
Copy Markdown
Collaborator

Interesting! Thank you!

Do you mind adding this into bin/server.js instead of apiController?

@magikcypress

Copy link
Copy Markdown
Contributor Author

Good idea! It's easier and clean indeed! ;)

@gmetais gmetais merged commit 12dd676 into YellowLabTools:master May 19, 2016
@magikcypress

Copy link
Copy Markdown
Contributor Author

You're welcome ! Thank you too for that great tool ! ;)

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

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.