-
Notifications
You must be signed in to change notification settings - Fork 457
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
Cannot copy request as cURL or generate snippet if host looks invalid #328
Comments
Sorry, I believe "Copy Request As cURL" is not working regardless of the host being malformed-looking or not. Possibly related to #308? Though I thought that was one of the fixes for this release. |
@jugaltheshah I can repro the issue and it seems not related to #308. And what's the expected behavior for url |
The expected behavior is that code generated from |
@jugaltheshah I have fixed this issue and will publish this in next release |
That's amazing, thanks @Huachao. I don't think I could turn around a sandwich that fast. :) |
@jugaltheshah you can try the latest version 0.21.2 to verify |
Sorry for the late reply. Confirmed - with 0.21.2 "Copy Request As cURL" is working as expected with arbitrary (non-url) strings. Thanks! |
Steps to Reproduce:
Expected behavior:
I'd expect a cURL request equivalent to the one highlighted to be copied to clipboard. Or if "Generate Code Snippet" was chosen, I'd expect the menu of choices to popup
Actual behavior:
Clipboard retains previous contents / no menu pops up.
If I change
$URL
tohttp://localhost
, for example, it starts working again. Not sure if this is expected behavior, but to me it seems like a bug. IMO REST Client shouldn't be responsible for checking that hosts are valid, only for generating the correct requests per the information given. My use case here was to generate a cURL request for another system in which$URL
is valid.The text was updated successfully, but these errors were encountered: