Merge pull request #20 from don-k-jacob/master

made 404 error with uid
This commit is contained in:
ryo-ma 2020-10-21 22:59:15 +09:00 • committed by GitHub
commit dd9c357dad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,7 @@ export default async (req: ServerRequest) => {
if (userInfo === null) { if (userInfo === null) {
req.respond( req.respond(
{ {
body: "Can not find a user", body: "Can not find a user with userID: "+username,
status: 404, status: 404,
headers: new Headers({ "Content-Type": "text" }), headers: new Headers({ "Content-Type": "text" }),
}, },