Skip to content

HttpSeverOperations overrides content-length to 0 on HTTP HEAD #171

@rstoyanchev

Description

@rstoyanchev

For an HTTP HEAD request, I set the content-length to the actual number that would be written on a GET and do not write to the body. However HttpSeverOperations overrides that with content-length:0 when it calls newFullEmptyBodyMessage from onOutboundComplete.

It should probably realize that the request is HEAD and no body was expected to begin with, and/or also that an actual content-length was set and should be left alone.

Current workaround is to write with Mono.empty(). This is with 0.7.0.RELEASE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions