https://kotlinlang.org logo
#ktor
Title
# ktor
m

maxmello

01/05/2021, 5:39 PM
Ktor 1.5 changed the trailing slashes behavior, which is fine / good, but this here does not appear to work:
Copy code
route("/resource") {
   get("/") {
  ...
If i call GET /resource/, I get a not found. /resource works
Copy code
route("/resource/") {
   get {
   ...
In this case, GET /resource/ is found, but /resource not (expected behavior) Is this intended behavior, a bug, or am I missing something?
r

Rustam Siniukov

01/06/2021, 1:54 PM
the first example is a bug. both
/resource
and
/resource/
should be handled
m

maxmello

01/06/2021, 2:07 PM
I submitted an issue in YouTrack https://youtrack.jetbrains.com/issue/KTOR-1615
👍 1
4 Views