launchiamenterprise / keyrunner

KeyRunner: A secure, codeless VS Code extension for API testing & Designing. Features include data encryption at rest, sensitive data masking, and the innovative Playground for chaining API requests without coding
https://keyrunner.app
MIT License
15 stars 1 forks source link

text/xml Content-Type POST requests pass a Content-Length of 0 #32

Closed hex2bit closed 4 months ago

hex2bit commented 4 months ago

When making a request that POSTs XML content, using the "text/xml" Content-Type, the Content-Length is passed as 0. When trying another Content-Type like "application/xml", the content length is set to the appropriate value.

A quick test would be to use Postman's echo API: https://postman-echo.com/post

Post some XML body content and set a Content-Type header with the value of text/xml. Example result: image

With the content type set to application/xml: image

launchiamenterprise commented 4 months ago

@hex2bit We've resolved the issue where text/xml Content-Type POST requests were passing a Content-Length of 0. This fix is included in the latest release, v1.0.57.

Please update to latest version and let us know if you are running into any issues.