|
@@ -26,7 +26,7 @@ var ApiController = function(app) {
|
|
|
|
|
|
// Add http to the test URL
|
|
|
if (req.body.url && req.body.url.toLowerCase().indexOf('http://') !== 0 && req.body.url.toLowerCase().indexOf('https://') !== 0) {
|
|
|
- req.body.url = 'http://' + req.body.url;
|
|
|
+ req.body.url = 'https://' + req.body.url;
|
|
|
}
|
|
|
|
|
|
// Block requests to unwanted websites (=spam)
|
|
@@ -270,7 +270,8 @@ var ApiController = function(app) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- // TODO: Reverse quick fix
|
|
|
+ // Quickfix (TODO remove)
|
|
|
+ results.runId = runId;
|
|
|
results.screenshotUrl = '/api/results/' + runId + '/screenshot.jpg';
|
|
|
|
|
|
res.setHeader('Content-Type', 'application/json');
|