fix: classloaderの呼び出しを変更2

This commit is contained in:
usbharu 2023-04-01 10:44:57 +09:00
parent 46c075bf6d
commit 0062829ffe
2 changed files with 1 additions and 1 deletions
src/main
kotlin/dev/usbharu/hideout/routing
resources

View File

@ -67,7 +67,7 @@ fun Application.user(userService: UserService, activityPubUserService: ActivityP
}
}
get("/{name}/icon.png"){
call.respondBytes(javaClass.classLoader.getResourceAsStream("icon.png").readAllBytes(),ContentType.Image.PNG)
call.respondBytes(String.javaClass.classLoader.getResourceAsStream("icon.png").readAllBytes(),ContentType.Image.PNG)
}
}

Binary file not shown.

Before

(image error) Size: 63 KiB

After

(image error) Size: 329 KiB