Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add binary body representation for http(s) requests for /imposters/{key} endpoint #703

Open
tbarabanov opened this issue Sep 29, 2022 · 0 comments

Comments

@tbarabanov
Copy link

tbarabanov commented Sep 29, 2022

Expected behaviour

httpRequest.js transformed.body is a string that is not what I expect to see for instance in case of application/octet-stream content.
I would like to have a binary representation of the recorded request body as well as string.

{
"ip":...,
"body": "...",
"bytes": ""iVBORw0KGgoAAAANSUhEUgAABjIAAAYCCAYAAACR..." // body as bytes (base64 string)
}

Actual behaviour

At the moment requests history returns body as string only.

Software versions used

OS         :
mountebank : 2.7.0
node.js    :
  (only if installed via npm)
Installation method :
  (npm, zip, tar, pkg, deb, rpm)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant