-
Notifications
You must be signed in to change notification settings - Fork 95
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
Improve access log handler to handle HEAD method. #791
Improve access log handler to handle HEAD method. #791
Conversation
0; | ||
_ -> | ||
Length | ||
end, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BytesOut = case Method of
'HEAD' -> 0;
_ -> Length
end,
I prefer this style.
Would you mind tagging erlcloud as 0.4.3 point to it from rebar.confg ? Then I'll give my small +1.
|
Sorry for stepping in, but I have a question/not-so-clear-point-for-me. I don't what If my above understanding is correct, Quick fix by Webmachine side is:
With this fix,
|
Oh, the above quick fix has a side effect to access log [1]. BEFORE fix:
AFTER fix:
The number of "The response size in bytes" differs. [1] Logging · basho/webmachine Wiki > https://github.com/basho/webmachine/wiki/Logging |
Looks like a wm bug. Fixing webmachine won't conflict with this fix and r_t added here , which is very useful. I also prefer faster 1.4.5 roll out for customers. Let's fix webmachine eventually. Maybe it's busy but not too busy. Thoughts? |
Bug is fixed by this PR. +1 for defering WM fix. |
@kota So sorry. Please accept my apologies.... |
- Fix access_log_handler to filter out ByteOut on Head request.
Updated the code style and bumped erlcloud version. |
…cess-log-handler Improve access log handler to handle HEAD method.
This fix prevents to include BytesOut element on Head Object(KeyStat) request the same as Head Bucket(BucketStat).
Requires the latest erlcloud commit: https://github.com/basho/erlcloud/pull/12/commits
Fix #789