Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

set content type to help remote-side parsers (i.e. Connect.bodyParser) #16

Merged
merged 1 commit into from

2 participants

@ryedin

This was a missing piece for our custom provider implementation, which is implemented via Connect routes (having this header means not having to re-write/re-deploy body parsing code we already have in our request stack)

@jed jed merged commit 1160c44 into from
@jed
Owner

awesome, thanks @ryedin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/services/oauth2.js
View
1  lib/services/oauth2.js
@@ -30,6 +30,7 @@ OAuth2.prototype.request = function(request, cb) {
request.body = request.query.slice(1)
request.headers || (request.headers = {})
request.headers["Content-Length"] = Buffer.byteLength(request.body)
+ request.headers["Content-Type"] = 'application/x-www-form-urlencoded';
}
https
Something went wrong with that request. Please try again.