-
Notifications
You must be signed in to change notification settings - Fork 128
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
Avoid downloading data when rehashing URL #982
Conversation
It seems that current behavior for rehashing URL still downloads the whole contents of that URL to memory. This change avoids doing so at all by telling `curl` to only get response headers, no body.
Hmm... instead of |
A couple more comments:
|
In fact, for (1), I will rerun Travis since the issue with |
Codecov Report
@@ Coverage Diff @@
## master #982 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 46 46
Lines 6336 6337 +1
=====================================
+ Hits 6336 6337 +1
Continue to review full report at Codecov.
|
Looks great, Noam. Thanks again! |
Summary
It seems that current behavior for rehashing URL still downloads the whole contents of that URL to memory. This change avoids doing so at all by telling
curl
to only get response headers, no body.I'm not sure where or how in the test framework to set up a test for "Does not download the whole URL content body when testing for changes at the URL."
Related GitHub issues and pull requests
Checklist
drake
's code of conduct.testthat
unit tests totests/testthat
for any new functionality.