I have checked the following:
This bug is:
Bruno version
4.1.0
💻 Operating System
Windows
Specific OS Version / Distro
No response
🐞 Describe the bug
req.getHost() returns an empty string if hostname is a variable.
Works if scheme is separate to the variable but has a different issue with case sensitivity that I will file separately
📝 Steps to reproduce
Set HOST variable to "https://example.com"
Set request URL to "{{HOST}}/test"
In pre-request script: console.log(req.getHost());
Empty string is logged
📁 Collection to reproduce
No response
📷 Screenshots/Live demo link
n/a
I have checked the following:
This bug is:
Bruno version
4.1.0
💻 Operating System
Windows
Specific OS Version / Distro
No response
🐞 Describe the bug
req.getHost() returns an empty string if hostname is a variable.
Works if scheme is separate to the variable but has a different issue with case sensitivity that I will file separately
📝 Steps to reproduce
Set HOST variable to "https://example.com"
Set request URL to "{{HOST}}/test"
In pre-request script: console.log(req.getHost());
Empty string is logged
📁 Collection to reproduce
No response
📷 Screenshots/Live demo link
n/a