akka/akka-http
Timeout-Access header always contains incorrect value "<function1>"
Aperta
#64 aperta il 8 set 2016
1 - triagedhelp wantednice-to-have (low-prio)
Metriche repository
- Star
- (1311 stelle)
- Metriche merge PR
- (Merge medio 1g 10h) (2 PR mergiate in 30 g)
Descrizione
Issue by nartamonov Tuesday Mar 22, 2016 at 16:00 GMT Originally opened as https://github.com/akka/akka/issues/20120
Following path returns response "Timeout-Access = ":
path("test") {
get {
optionalHeaderValueByName("Timeout-Access") { timeout =>
complete(s"Timeout-Access = ${timeout.get}")
}
}
}
It's because TimeoutAccessImpl does not override toString which inherited by default from scala.Function1.