Skip to content

Commit

Permalink
Merge pull request #2207 from simov/move-aws4
Browse files Browse the repository at this point in the history
Move aws4 require statement to the top
  • Loading branch information
simov committed May 9, 2016
2 parents 256268f + 70cafab commit 11a1c72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions request.js
Expand Up @@ -9,6 +9,7 @@ var http = require('http')
, bl = require('bl')
, hawk = require('hawk')
, aws2 = require('aws-sign2')
, aws4 = require('aws4')
, httpSignature = require('http-signature')
, mime = require('mime-types')
, stringstream = require('stringstream')
Expand Down Expand Up @@ -1264,10 +1265,9 @@ Request.prototype.aws = function (opts, now) {
self._aws = opts
return self
}

if (opts.sign_version == 4 || opts.sign_version == '4') {
var aws4 = require('aws4')
// use aws4
// use aws4
var options = {
host: self.uri.host,
path: self.uri.path,
Expand Down

0 comments on commit 11a1c72

Please sign in to comment.