Skip to content

Commit

Permalink
Merge pull request sintaxi#65 from zachahn/master
Browse files Browse the repository at this point in the history
fix issue sintaxi#64
  • Loading branch information
sintaxi committed Apr 25, 2013
2 parents e80f74a + 1e5b4f3 commit b68fb2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var qs = require("querystring")
module.exports = function(config){
var root = config.root || "sandbox"
var signer = oauth(config.app_key, config.app_secret)
var scope = config.scope
var scope = config.scope = config.scope || ""

return {
sign: function(token, args){
Expand Down Expand Up @@ -111,13 +111,13 @@ module.exports = function(config){
var fileop = obj.action.split("/")[0] == "fileops"

// fileops calls desn't want root in path
var rootpath = fileop ? null : root
var rootpath = fileop ? "" : root

// fileops calls desn't want scope in path
var scopepath = fileop ? null : scope
var scopepath = fileop ? "" : scope

// we wont always have this
var filepath = obj.path ? qs.escape(obj.path) : null
var filepath = obj.path ? qs.escape(obj.path) : ""

// build full path
var fullpath = path.join(obj.hostname)
Expand Down

0 comments on commit b68fb2e

Please sign in to comment.