TEXT body with Content-Type: application/x-www-form-urlencoded does not interpolate {{variables}}
Internal - [BRU-4556]
I have checked the following:
- I have searched existing issues and found nothing related to my issue.
This bug is:
- Making Bruno unusable for me.
- Slowing me down but I'm able to continue working.
- Annoying.
- This feature was working in a previous version but is broken in the current release.
Bruno version
4.1.0
Operating System
macOS
Specific OS Version / Distro
macOS 27.0.0 (Darwin)
Describe the bug
When a request uses Body type TEXT and the header Content-Type: application/x-www-form-urlencoded, variables in the body stay as literal {{var}} at send time.
The editor highlights them as resolved, and the URL interpolates correctly. Timeline shows the body was sent unresolved.
This is a possible regression of #2400 (closed as fixed in v1.35).
Root cause: urlencoded interpolation only runs when request.data is an array (Form URL Encoded fields). TEXT body is a string, so that branch does nothing. URL uses a different path, so it still interpolates.
Steps to reproduce
Send POST request with BODY username={{oauth_user}}&password={{oauth_password}}&grant_type=password
Expected: body values are interpolated. Actual: URL is interpolated, body is sent as username={{oauth_user}}&password={{oauth_password}}&grant_type=password
Collection to reproduce
No response
Screenshots/Live demo link
Source: usebruno/bruno