akka/akka-http

Add conversion of spaces("%20") in request parameters to actual spaces

Offen

#23 geöffnet am 08.09.2016

 (6 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Scala (598 Forks)batch import
1 - triagedhelp wantednice-to-have (low-prio)t:routing

Repository-Metriken

Stars
 (1.311 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 1T 10h) (2 gemergte PRs in 30 T)

Beschreibung

Issue by kelebra Sunday Jun 19, 2016 at 04:05 GMT Originally opened as https://github.com/akka/akka/issues/20802


Hi, guys,

I've been playing around with aka-http and found out that when I have a route like this:

get {
    path("something" / Rest) { info =>
              println(info)
              complete(s"You entered: $info")
    }
}

and send get to /something/long%20line the info variable is actually equal to long%20line. Maybe it would be nice to add at least implicit method to replace %20 to actual spaces like info.withSpaces or it would be make this king of behavior default?

Contributor Guide