akka/akka-http

Timeout-Access header always contains incorrect value "<function1>"

开放

#64 创建于 2016年9月8日

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

仓库指标

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

描述

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.

贡献者指南