I am trying to post a file in wiremock and configure the file in mapping like below. And in the response I am seeing Content-Type, Content-Disposition etc, is there a way to disable this?
POST file
http://localhost:8080/__admin/files/some.json
used form-data to upload the file
contents of some.json
{
"user": "xxx"
}
To create mapping
http://localhost:8080/__admin/mappings
{
"request": {
"method": "GET",
"url": "/some"
},
"response": {
"status": 200,
"bodyFileName": "some.json",
"headers": {
"Content-Type": [
"application/json;charset=UTF-8"
]
}
}
}
To check the api
http://localhost:8080/some
Response:
----------------------------228585284577179878202292
Content-Disposition: form-data; name="file"; filename="some.json"
Content-Type: application/json
{
"user": "xxx"
}
----------------------------228585284577179878202292--
Like you see, there are additional content like below to the actual response. Wanted to disable the below. How to do this?
----------------------------228585284577179878202292
Content-Disposition: form-data; name="file"; filename="some.json"
Content-Type: application/json
----------------------------228585284577179878202292--