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
I'm unable to specify the mime type of the files sent as part of multipart/form-data requests using the python requests module.
multipart/form-data
I believe the relevant code is here: https://github.com/Kong/httpsnippet/blob/master/src/targets/python/requests/client.ts#L82
I was thinking we could support it by making a change like so:
if (p.fileName) { if (p.mimeType) { files[p.name] = `('${p.fileName}', open('${p.fileName}', 'rb'), '${p.mimeType}')`; } else { // current behaviour files[p.name] = `open('${p.fileName}', 'rb')`; } hasFiles = true; } else { payload[p.name] = p.value; hasPayload = true; }
The text was updated successfully, but these errors were encountered:
bump
Sorry, something went wrong.
No branches or pull requests
I'm unable to specify the mime type of the files sent as part of
multipart/form-data
requests using the python requests module.I believe the relevant code is here: https://github.com/Kong/httpsnippet/blob/master/src/targets/python/requests/client.ts#L82
I was thinking we could support it by making a change like so:
The text was updated successfully, but these errors were encountered: