akka/akka-http

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

开放

#23 创建于 2016年9月8日

 (6 条评论) (0 个反应) (0 位负责人)Scala (598 个派生)batch import
1 - triagedhelp wantednice-to-have (low-prio)t:routing

仓库指标

星标
 (1,311 个星标)
PR 合并指标
 (平均合并 1天 10小时) (30 天内合并 2 个 PR)

描述

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?

贡献者指南