-
Notifications
You must be signed in to change notification settings - Fork 520
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
CLI option --max-filesize
not always enforced
#3245
Comments
I realized now that curl --max-filesize 10 https://unpkg.com/vue@3.4.27/dist/vue.global.prod.js According to https://everything.curl.dev/usingcurl/downloads/max-filesize.html though, it should stop after it exceeds the max filesize even if it doesn't know it upfront. But it doesn't. edit: According to https://curl.se/docs/manpage.html#--max-filesize after curl 8.4.0 it should be rejected:
It seems though that Hurl uses So, is there a way to update the version used by Hurl, or does that depend on my system's version of |
Given the description, my first move should have been to run the test with That's said:
Two things that are somewhat related to this:
|
Thanks for the quick change inside Hurl @jcamiel. I fixed it on my side too by updating the server version to The statically built Hurl would be awesome, I do love that if it ever comes, but I do see the extra overhead on you might not worth it, which is totally fair too. I did try yesterday to build |
What is the current bug behavior?
A response of 147KB Javascript file is not rejected with
--max-filesize 100
.Steps to reproduce
Run the above with:
The download of the file succeeds just fine.
What is the expected correct behavior?
The download should be rejected.
For other file types like images or JSON, the max filesize option applies successfully, for example:
Running the above will give out:
With a low enough max filesize (e.g.
10
) it will also fail the second JSON request.Instead of failing at the first entry for the JS file.
Execution context
hurl --version
):Possible fixes
The text was updated successfully, but these errors were encountered: