Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Apparently S3 always uses the same format to sign

  • Loading branch information...
commit 156a1e471e1538e027741eadd196531a5709ac92 1 parent 1e62034
@brettcvz brettcvz authored
Showing with 1 addition and 6 deletions.
  1. +1 −6 index.js
View
7 index.js
@@ -30,12 +30,7 @@ exports.urlSigner = function(key, secret, options){
var epo = Math.floor(expires.getTime()/1000);
- var str;
- if (subdomain) {
- str = verb + '\n\n\n' + epo + '\n' + (fname[0] === '/'?'':'/') + fname;
- } else {
- str = verb + '\n\n\n' + epo + '\n' + '/' + bucket + (fname[0] === '/'?'':'/') + fname;
- }
+ var str = verb + '\n\n\n' + epo + '\n' + '/' + bucket + (fname[0] === '/'?'':'/') + fname;
var hashed = hmacSha1(str);
Please sign in to comment.
Something went wrong with that request. Please try again.