Commit f3d997d4 authored by nanahira's avatar nanahira

log

parent e07563a3
...@@ -32,7 +32,7 @@ const https_server = https.createServer(https_options, (request, response) => { ...@@ -32,7 +32,7 @@ const https_server = https.createServer(https_options, (request, response) => {
console.log("BAD USERNAME JSON", body); console.log("BAD USERNAME JSON", body);
} else if (!body.users) { } else if (!body.users) {
response.writeHead(404); response.writeHead(404);
response.end("Not found."); response.end("User not found.");
} else { } else {
const real_username = encodeURIComponent(body.users[0].username); const real_username = encodeURIComponent(body.users[0].username);
_request({ _request({
...@@ -44,7 +44,7 @@ const https_server = https.createServer(https_options, (request, response) => { ...@@ -44,7 +44,7 @@ const https_server = https.createServer(https_options, (request, response) => {
console.error("REQUEST ERROR", error); console.error("REQUEST ERROR", error);
} else if (body == "{\"message\":\"Not Found\"}") { } else if (body == "{\"message\":\"Not Found\"}") {
response.writeHead(404); response.writeHead(404);
response.end("Not found."); response.end("Avatar not found.");
} else { } else {
//console.log(body); //console.log(body);
_request({ _request({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment