We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9bba20 commit c4c1a62Copy full SHA for c4c1a62
server/src/main/kotlin/cloud/skadi/gist/routing/Gist.kt
@@ -42,8 +42,11 @@ fun Application.configureGistRoutes(
42
else
43
null
44
45
- if (token != null && user == null)
+ if (token != null && user == null) {
46
log.warn("Can't find user by token ($token)")
47
+ call.respond(HttpStatusCode.Unauthorized, "Token expired")
48
+ return@post
49
+ }
50
51
val (name, description, visibility, roots) = call.receive<GistCreationRequest>()
52
0 commit comments