0

spray.io用来服务 HTTP 请求。作为回应,我想删除有关喷雾框架的信息。那么如何"Server: spray-can/1.3.3"从响应头中删除spray呢?

4

1 回答 1

4

您可以通过以下方式设置application.conf

spray.can {

  server {
    # The value of the `Server` header to produce.
    # Set to the empty string to disable rendering of the server header.
    server-header = spray-can/${spray.version}
  }
}
于 2016-04-14T10:44:53.943 回答