Fix sqlapi request header to be "Host", not "Hostname"

Closes (better) #117 -- automated test included
This commit is contained in:
Sandro Santilli
2014-01-30 16:46:26 +01:00
parent ca4f3d2025
commit 978ea9cd04
3 changed files with 40 additions and 1 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ module.exports = function(){
//
request.post({
url:sqlapi, body:qs, json:true,
headers:{hostname:sqlapihostname}
headers:{host: sqlapihostname}
}, function(err, res, body)
{
if (err){