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

[wip] compute length of tar output for Content-Length #1

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ioistired
Copy link

running bin/dirserver -http 127.0.0.1:5000 -root . at the repo directory:

$ curl -s  http://dirserver.localhost:5000/src/dirserver/vendor/._tar/vendor.tar | wc -m
4965636
tar dbg: /src/dirserver/vendor 4964684 b0d631a26644098454369f090df91e019f63a3e5

they should both say 4965636.

@ioistired ioistired changed the title [wip] hash tar output for etag generation [wip] compute length of tar output for Content-Length Mar 15, 2020
@ioistired
Copy link
Author

OK, tar Content-Length works fine, but zip Content-Length doesn't match yet:

➤ curl  'http://localhost:5000/Daft%20Punk/._zip/Daft%20Punk.zip'  >/dev/null
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 99  887M   99  887M    0     0   408M      0  0:00:02  0:00:02 --:--:--  408M
curl: (18) transfer closed with 815 bytes remaining to read

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.

None yet

1 participant