We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Environment (please complete the following information):
Describe the bug browser.getRequests() give an empty request body for an intercepted multipart/form-data type request
browser.getRequests()
multipart/form-data
To Reproduce just to give an idea of the flow:
browser.url('http://foo.bar'); browser.setupInterceptor(); browser.click('#button'); **multipart formdata request happens** browser.getRequests();
Result See attachment and enquiryForm returned is empty.
attachment
enquiryForm
[ { url: "http://localhost:1080/sso/api/v1/sendEnquiryEmailNotification/contactUs", method: "POST", body: { attachment: [ { }, ], enquiryForm: [ { }, ], }, headers: { accept: "REDACTED", authorization: "REDACTED", }, response: { headers: { "content-length": "REDACTED", "content-type": "REDACTED", }, body: "REDACTED", statusCode: 200, }, } ]
Expected behavior Perhaps return a buffered version of the raw request or return something close to what chrome dev tools does?
------WebKitFormBoundary0EqzZIl45dhs4UWu Content-Disposition: form-data; name="attachment"; filename="app-pdf.pdf" Content-Type: application/pdf ------WebKitFormBoundary0EqzZIl45dhs4UWu Content-Disposition: form-data; name="enquiryForm"; filename="blob" Content-Type: application/json {"contactMode":"email","enquiryTopic":"account","message":"REDACTED"} ------WebKitFormBoundary0EqzZIl45dhs4UWu--
The text was updated successfully, but these errors were encountered:
i'll be happy to contribute with the patch if someone can point me on the right bits to look at. thanks!
Sorry, something went wrong.
watch 👀
No branches or pull requests
Environment (please complete the following information):
Describe the bug
browser.getRequests()
give an empty request body for an interceptedmultipart/form-data
type requestTo Reproduce
just to give an idea of the flow:
Result
See
attachment
andenquiryForm
returned is empty.Expected behavior
Perhaps return a buffered version of the raw request or return something close to what chrome dev tools does?
The text was updated successfully, but these errors were encountered: