Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "boomcatch", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Standalone beacon server for boomerang.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/nature/boomcatch", |
@@ -10,3 +10,3 @@ # boomcatch | ||
* **boomcatch version**: *1.0.0* | ||
* **boomcatch version**: *1.1.1* | ||
* **node.js versions**: *0.8, 0.10, 0.11* | ||
@@ -13,0 +13,0 @@ |
@@ -362,3 +362,3 @@ // Copyright © 2014 Nature Publishing Group | ||
try { | ||
var data, mappedData; | ||
var successStatus, data, mappedData; | ||
@@ -370,4 +370,7 @@ if (state.failed) { | ||
if (request.method === 'GET') { | ||
successStatus = 204; | ||
data = qs.parse(url.parse(request.url).query); | ||
} else { | ||
successStatus = 200; | ||
if (state.body.substr(0, 5) === 'data=') { | ||
@@ -402,3 +405,3 @@ state.body = state.body.substr(5); | ||
pass(log, response, bytesSent); | ||
pass(log, response, successStatus, bytesSent); | ||
}); | ||
@@ -534,8 +537,8 @@ } catch (error) { | ||
function pass (log, response, bytes) { | ||
function pass (log, response, status, bytes) { | ||
log.info('sent ' + bytes + ' bytes'); | ||
response.statusCode = 204; | ||
response.statusCode = status; | ||
response.end(); | ||
} | ||
Sorry, the diff of this file is too big to display
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
216415
3884