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

Refactor : extracted httpReply function + Improvement : more meaningful error #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jggc
Copy link

@jggc jggc commented Jun 14, 2016

Refactor : There were many redundant blocks of echo -en to send the same HTTP headers. Also the hardcoded Content-Length is just a bad idea, it's too easy to modify the content and forgetting to change the Content-Lenght. Also it's not obvious for people who don't speak HTTP very fluently how to calculate the Content-Lenght.

Improvement : For first time users having a message that suggest setting up the user can be helpful. It would have helped me anyway!

jggc added 2 commits June 14, 2016 15:36
This is especially useful for first time users who don't know that they should setup a user for this specific script
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.

1 participant