-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Bug] Axios requests in pre-request scripts behave differently in bruno-app and bruno-cli #759
Comments
It's strange, it is still working correctly also in 0.27.2 binary but if I run bruno-app from the latest sources then it is working incorrectly the same way as in bruno-cli. |
It is caused by inconsistency in Axios versions used in bruno packages. Some of them uses |
…tency fix (#759): fixed axios versions inconsistency
In pre-request script I use Axios requests which uses Axios feature that if
content-type
header is set toapplication/x-www-form-urlencoded
anddata
is JS object then it is automatically serialized and encoded to urlencoded format. It is documented here: https://axios-http.com/docs/urlencoded#automatic-serialization and it should be available in Axios (if I'm not mistaken) from version 1.0.0But it is working as expected only in bruno-app and not working correctly in bruno-cli (data object is sent serialized as json and not urlencoded)
Minimal request how to reproduce it:
I can see on webhook.site that if such request is executed in bruno-app, then raw request body is:
If I run this request in bruno-cli then the raw body is:
bruno-app version: 0.27.0
buno-cli version: 0.15.1
The text was updated successfully, but these errors were encountered: