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

corrects readme and fixes headers not being written correctly #1

Merged
merged 1 commit into from Oct 5, 2017
Merged

corrects readme and fixes headers not being written correctly #1

merged 1 commit into from Oct 5, 2017

Conversation

patrickjmcd
Copy link
Contributor

The command to run the script with a non-default port needed to be ./gochain -port=5000 instead of ./gochain 5000.

Also, in order for the HTTP response to be encoded correctly, in the buildResponse function,
w.Header().Set("Content-Type", "application/json") needs to come before w.WriteHeader(resp.statusCode)

@crisadamo
Copy link
Owner

Oh! @patrickjmcd you are totally right! I forgot to update the Docs. Thanks for your PR!

@crisadamo crisadamo merged commit fc3aa97 into crisadamo:master Oct 5, 2017
@patrickjmcd
Copy link
Contributor Author

You’re quite welcome! I’m glad it helped!

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.

None yet

2 participants