Commit 15bb2214 authored by nanahira's avatar nanahira

fix

parent 31aae09e
......@@ -31,10 +31,10 @@ const https_server = https.createServer(https_options, (request, response) => {
response.end("Bad username JSON.");
console.log("BAD USERNAME JSON", body);
} else if (!body.users) {
request_avatar(username);
request_avatar(response, username);
} else {
const real_username = body.users[0].username;
request_avatar(real_username);
request_avatar(response, real_username);
}
});
});
......
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