Mocking application/octet-stream response

60 views
Skip to first unread message

ravi gupta

unread,
Oct 11, 2021, 2:44:00 PM10/11/21
to mountebank-discuss
Does Mountebank support mocking of a Multipart octet-stream type of response wherein a file can be returned from the server ?

Apparantly, when using a text file in the response,  server returns a response:
"responses": [
{
"is": {
"statusCode": 200,
"body": "<%- stringify(filename, 'templates/attachments/dZ8nmFzPpqAb2RGYYC_txt.txt') %>"
}
}
],


But any other file other than a text file prevents Mountebank from starting with this error:
"Could not find matching close tag for "<%"

"responses": [
{
"is": {
"statusCode": 200,
"body": "<%- stringify(filename, 'templates/attachments/dZ8nmFzPpqAb2RGYYC_webp.webp') %>"
}
}
],


Reply all
Reply to author
Forward
0 new messages