Skip to content

Conversation

llimllib
Copy link

🧰 Changes

Fix shell quoting on curl's @file parameter

🧬 QA & Testing

  • save an image file to the file name image copy.jpg, then run:

curl https://httpbingo.org/anything -X POST --form file='@image copy.jpg'

note that what we currently produce is:

curl https://httpbingo.org/anything -X POST --form file=@image%20copy.jpg

and that that does not work

@erunion
Copy link
Member

erunion commented Mar 21, 2024

@llimllib lgtm, unfortunately getting this out to production is currently blocked by our TS upgrades and UI directive removal.

@erunion erunion merged commit 29e859d into main Mar 21, 2024
@erunion erunion deleted the llimllib-fix-file-escaping branch March 21, 2024 16:30
@llimllib
Copy link
Author

yup, just figured I'd fix it while I knew what it was

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants