-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Curl import changes URL #2379
Comments
When you import cURL from Apidog, you won't encounter this issue. Give it a try; I think it's quite effective. |
Maybe it's removed by this line. |
@jokj624 that line is actually specifically written to remove the |
I can't imagine a situation in which I want the request that Bruno sends out to be different from the request cURL sends out. If the user doesn't want a trailing slash they would just delete it from the URL after import (or in the cURL command). This caused me a huge headache yesterday. I was trying to hit this Python FastAPI endpoint, and I was getting a correct response using cURL on the command line, but importing into Bruno kept giving me a "405 method not allowed" error. I ended up spinning up a webserver that echoed back the headers, thinking maybe Bruno was attaching a hidden header somewhere? I thought it would be great if Bruno had an "export to cURL" feature, so I could have done a string comparison with the cURL syntax, but I don't believe that exists in Bruno. 15 minutes later, I realized that the trailing |
@helloanoop do you remember why you chose to strip the trailing slash? |
No, I don't remember. Agree that we should not strip the slash if curl command has it. |
I have checked the following:
Describe the bug
When a curl command is imported, the url is changed by removing the last /
curl 'http://example.com/test/'
turns intohttp://example.com/test
This affects endpoints that end with /
.bru file to reproduce the bug
No response
Screenshots/Live demo link
Bruno_bLISVj39uA.mp4
The text was updated successfully, but these errors were encountered: