Commit f3d997d4 authored by nanahira's avatar nanahira

log

parent e07563a3
......@@ -32,7 +32,7 @@ const https_server = https.createServer(https_options, (request, response) => {
console.log("BAD USERNAME JSON", body);
} else if (!body.users) {
response.writeHead(404);
response.end("Not found.");
response.end("User not found.");
} else {
const real_username = encodeURIComponent(body.users[0].username);
_request({
......@@ -44,7 +44,7 @@ const https_server = https.createServer(https_options, (request, response) => {
console.error("REQUEST ERROR", error);
} else if (body == "{\"message\":\"Not Found\"}") {
response.writeHead(404);
response.end("Not found.");
response.end("Avatar not found.");
} else {
//console.log(body);
_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