Skip to content

HEAD Request Directives not processing when transparent-head-requests on #27

Description

@EdgeCaseBerg

Hello!

I think I may have found a bug when dealing with HEAD requests to spray-can. The documentation states:

By default, spray-can handles HEAD-requests transparently by dispatching a GET-request to the handler and stripping of the result body. See the spray.can.server.transparent-head-requests setting for how to disable this behavior.

But it doesn't say that the head directives won't be processed as all when the setting is on. I've made an example repository with instructions on how to reproduce what I see as an error or undocumented "feature" here

The steps to reproduce are in the README file in the linked example. Is this the expected behavior? If so, where is it documented?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions