-
Notifications
You must be signed in to change notification settings - Fork 594
Open
Labels
1 - triagedTickets that are safe to pick up for contributing in terms of likeliness of being acceptedTickets that are safe to pick up for contributing in terms of likeliness of being accepted
Description
In HttpMethods
akka-http/akka-http-core/src/main/scala/akka/http/scaladsl/model/HttpMethod.scala
Line 107 in 0fb5d36
| val HEAD = register(HttpMethod("HEAD" , isSafe = true , isIdempotent = true , requestEntityAcceptance = Disallowed, contentLengthAllowed = contentLengthAllowedForHead)) |
For HEAD method contentLengthAllowed = contentLengthAllowedForHead, which return false for all cases.
This actually doesn't allow to specify Content-Lenght in responses, that may cause unexpected behaviours. For example if you serve Windows appInstaller, it tries to fetch HEAD to understand Content-Lenght to fetch later with Range Header. And without Content-Lenght it fails to install it.
kulikov
Metadata
Metadata
Assignees
Labels
1 - triagedTickets that are safe to pick up for contributing in terms of likeliness of being acceptedTickets that are safe to pick up for contributing in terms of likeliness of being accepted