Skip to content

Conversation

@theseal
Copy link
Contributor

@theseal theseal commented Aug 31, 2014

If a user is modifying the .gist file by hand there is a big risk that the
user adds a newline to the file. That newline is causing gist to fail with
"Error: Got Net::HTTPUnauthorized from gist:".
So better remove the eventual newline with chomp before use.

This is extra handy when setting up gist on an computer that you don't trust
with your real GitHub credentials (pre-generated OAuth token).

If a user is modifying the .gist file by hand there is a big risk that the
user adds a newline to the file. That newline is causing gist to fail with
"Error: Got Net::HTTPUnauthorized from gist:".
So better remove the eventual newline with chomp before use.

This is extra handy when setting up gist on an computer that you don't trust
with your real GitHub credentials (pre-generated OAuth token).
ConradIrwin added a commit that referenced this pull request Sep 1, 2014
Chomp OAuth access token before use.
@ConradIrwin ConradIrwin merged commit 27ac6ae into defunkt:master Sep 1, 2014
@ConradIrwin
Copy link
Collaborator

Thanks!

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