Skip to content

Instantly share code, notes, and snippets.

@chapel
Created October 25, 2010 04:48
Show Gist options
  • Save chapel/644420 to your computer and use it in GitHub Desktop.
Save chapel/644420 to your computer and use it in GitHub Desktop.
jsdom issues
if( orderedParameters[i][0].match('^oauth_') == "oauth_") {
authHeader+= this._encodeData(orderedParameters[i][0])+"=\""+ this._encodeData(orderedParameters[i][1])+"\",";
console.log('true');
}
_header: 'GET /1/statuses/sample.json HTTP/1.1\r\nAuthorization: OAuth\r\nHost: stream.twitter.com\r\nAccept: */*\r\nConnection: close\r\nUser-Agent: Node authentication\r\nContent-length: 0\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\n'
_header: 'GET /1/statuses/sample.json HTTP/1.1\r\nAuthorization: OAuth oauth_consumer_key="asdf",oauth_nonce="asdf",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1287981856",oauth_token="asdf",oauth_version="1.0A",oauth_signature="asdf%3D"\r\nHost: stream.twitter.com\r\nAccept: */*\r\nConnection: close\r\nUser-Agent: Node authentication\r\nContent-length: 0\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment