Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upclient.resource() raw payload #193
Closed
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Technically, the
internals.parse()
method in oauth.js is broken because it assumes JSON payload always starts with a{
character. This is needed to hack around broken OAuth implementations that return the wrong payloads with or without proper content-encoding headers. But it will break some APIs. This fix allows turning off the parser. A better solution would be to makeinternal.parse()
better to actually provide value (but I don't have the time for that). Either way, this is a useful option.