Skip to content
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

Fix for #258 Variable replacement doesn't work when file is injected in multipart/form-data request #622

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

wiadam
Copy link

@wiadam wiadam commented Feb 2, 2024

@AnWeber
Copy link
Owner

AnWeber commented Feb 2, 2024

Did you test it manually? I got no unit test fornthis use case at the moment

@AnWeber
Copy link
Owner

AnWeber commented Feb 2, 2024

The fix already works as you created it. Unfortunately, it's not quite enough. In the transformRequestBodyToBuffer I have unfortunately executed two tasks at the same time. On the one hand I load files into memory and on the other hand I transform the body either into a buffer or string. You have to separate them and execute one part before and one part after the variable replacement. I merge your branch and fix it in my branch.

@AnWeber AnWeber merged commit b754ab7 into AnWeber:main Feb 2, 2024
1 of 3 checks passed
@wiadam wiadam deleted the httpyas_fix_258 branch February 3, 2024 02:06
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