-
Notifications
You must be signed in to change notification settings - Fork 31
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
Bugfix: REST publish encoding was "utf8" should be "utf-8" #60
Bugfix: REST publish encoding was "utf8" should be "utf-8" #60
Conversation
…tf-8. Add a test to check for this when we pull the history after publishing.
Hi, Thanks for this contribution! This library hasn't had much attention recently but we've got someone starting work on it from next week so hopefully you should see some progress. In the meantime we'll have a look at this PR. Thanks |
Hi @CraigChilds94! What was the exact problem you had related to the Internal packages have been around since Go 1.5, so it should definitely work with 1.8. |
@ORBAT I assume we should merge in the |
@mattheworiordan: the |
Ok, well perhaps raise an issue for |
1 similar comment
Ok, well perhaps raise an issue for |
@ORBAT I can't remember the exact error I had now with the internal package, but I had a quick look online to see if it was just me and it looks like it happens on other packages too, other's that use Thanks for taking a look though, the utf-8 thing was bugging me, as my JS client kept logging errors every time I received messages. And using constants sounds good to me also! :) |
@CraigChilds94, the rationale behind internal packages like |
@ORBAT Ah cool, I guess it comes down to a package scope thing. If it's just a case of tracking changes, what about putting it in a different repo? The error I get when trying to build the package with that directory in places is |
@CraigChilds94, code under Ultimately though, I realized that the problem is that we don't have up to date contribution instructions / how to work with forks of the repo. Since we use internal packages, when you fork the package, you need to add your fork as a remote in In your case the procedure would be: cd $GOPATH/src/github.com/ably/ably-go
git remote add fork git@github.com:CraigChilds94/ably-go
git fetch fork
git checkout --track fork/bug/fix-rest-publish-encoding
# hack hack hack [...] Sooo, long story short, I'd suggest doing ^ that, and then reverting the changes related to |
@ORBAT Awesome. Thanks for that, I'll try and get to that this week. |
@CraigChilds94: we're about to roll out a release with the UTF-8 fix included, so I'm closing this PR. Thank you for taking the time to do one in any case |
There was an error which prevented me from running tests and vetting the application. The package name "internal" is not valid and Go v1.8 complains. I've moved the package up 1 directory so instead of
/ably/internal/ablyutil
it's/ably/ablyutil
.I've also fixed the encoding which is being set when publishing a REST message. The clients and everywhere else in the library use "utf-8" as the encoding, but this was using "utf8" which was causing an encoding error on the client when trying to decode the message.