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.
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
HttpSeverOperationsoverrides that with content-length:0 when it callsnewFullEmptyBodyMessagefromonOutboundComplete.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.