Skip to content

Commit

Permalink
Remove explicit content length header
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Dumas committed Oct 16, 2024
1 parent 7b723ce commit 09275ee
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ object FileResponse {
implicit def fileResponseMetadataHttpResponseFields: HttpResponseFields[Metadata] =
new HttpResponseFields[Metadata] {
override def statusFrom(value: Metadata): StatusCode = StatusCodes.OK
override def headersFrom(value: Metadata): Seq[HttpHeader] =
value.bytes.map { bytes => `Content-Length`(bytes) }.toSeq
override def headersFrom(value: Metadata): Seq[HttpHeader] = Seq.empty

override def entityTag(value: Metadata): Option[String] = value.etag
}
Expand Down

0 comments on commit 09275ee

Please sign in to comment.