Comparing version 1.4.3 to 1.4.4
@@ -58,7 +58,5 @@ "use strict"; | ||
if (!params.host) { | ||
params.host = 'www.yellowbot.com'; | ||
} | ||
this.server.host = params.host; | ||
this.server.headers.Host = this.server.host; | ||
var host = params.host || 'www.yellowbot.com'; | ||
this.server.host = host; | ||
this.server.headers.Host = host; | ||
@@ -65,0 +63,0 @@ //params.auth = "devel:0nly"; |
@@ -5,3 +5,3 @@ { | ||
"description": "YellowBot API wrapper", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"homepage": "https://github.com/solfo/node-yellowbot", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -40,3 +40,3 @@ # node-yellowbot.js - node.js yellowbot API | ||
Copyright (C) 2011-2012 Solfo, Inc | ||
Copyright (C) 2011-2013 Solfo, Inc | ||
@@ -43,0 +43,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
var vows = require('vows'), | ||
assert = require('assert'), | ||
_ = require('underscore'), | ||
util = require('util'); | ||
@@ -11,3 +12,7 @@ | ||
ypapi.configure({api_key: "base", api_secret: "789"}); | ||
api1.configure({api_key: "abc", api_secret: "123"}); | ||
var config = { | ||
api_key: "abc", api_secret: "123" | ||
}; | ||
var config_backup = _.clone(config); | ||
api1.configure(config); | ||
api2.configure({api_key: "def", api_secret: "456"}); | ||
@@ -20,3 +25,7 @@ | ||
}, | ||
"config hash didn't change": function () { | ||
assert.deepEqual(config, config_backup); | ||
}, | ||
}).export(module, {error: false}); | ||
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14468
291