Skip to content

Commit

Permalink
Updated 2 webapp
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrik Stene committed Sep 21, 2017
1 parent 64860cf commit 3d1230e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ app.get('/test', function (request, response) {

function authorize(request, response, callback) {
var options = {
url: 'http://localhost:8000/auth/authorize',
url: 'http://10.0.1.7:8000/auth/authorize',
method: 'GET',
headers: {
'Authorization': request.headers.authorization
Expand All @@ -49,7 +49,7 @@ function authorize(request, response, callback) {
if (res && (res.statusCode === 200 || res.statusCode === 201)) {
callback(err, res, body);
} else {
console.log("Access denied");
console.log("Access denied:" + res.statusCode);
response.statusCode = 500
response.body = body;
return response.end();
Expand Down

0 comments on commit 3d1230e

Please sign in to comment.