Add trailing newline to response body
This commit is contained in:
parent
726a25bed7
commit
7c0ac15022
@ -121,7 +121,7 @@ object Routes {
|
||||
// while also redirecting browser uploads to the newly created paste.
|
||||
// May seem odd to return code 302, but it seems to be the only way.
|
||||
response.headers.append(HttpHeaders.Location, uri)
|
||||
respond(HttpStatusCode.Found, "${config[ServerSpec.pasteurl].ifBlank { config[ServerSpec.domain] }}$uri")
|
||||
respond(HttpStatusCode.Found, "${config[ServerSpec.pasteurl].ifBlank { config[ServerSpec.domain] }}$uri\n")
|
||||
return uri
|
||||
}
|
||||
|
||||
@ -134,7 +134,7 @@ object Routes {
|
||||
} else {
|
||||
respond(HttpStatusCode.OK, PastePage.build(paste.content, paste.uri, ext))
|
||||
}
|
||||
} ?: respond(HttpStatusCode.NotFound, "nothing found for id $uri")
|
||||
} ?: respond(HttpStatusCode.NotFound, "nothing found for id $uri\n")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user