d4b89edf9c
RFC-7230 states that a Content-Length header is normally sent in a POST request even when the value (length) is 0, indicating an empty payload body. Rex HTTP client failed to follow this spec, and caused some modules to fail (such as winrm_login). Fix #6398