![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Affects Versions:
|
1.1.2 |
|
Assignee:
|
Logback dev list
|
|
Components:
|
logback-access |
|
Created:
|
22/Jan/15 11:29 AM
|
|
Description:
|
Hi,
I noticed that the implementation of ServerAdapter.getContentLength() is not the same for Tomcat and Jetty :
- Tomcat's one use response.getContentLength()
- Jetty's one use response.getContentCount()
Both expose response.getContentLength() and response.getContentCount(), and I understand that contentLength is the value from the response's header, while contentCount is the number of bytes actually written to the output stream.
So I think that ServerAdapter.getContentLength() should always use the underlying response.getContentLength(), and maybe we can add another method ServerAdapter.getContentCount() is people want to retrieve this value too.
What do you think ?
|
|
Project:
|
logback
|
|
Priority:
|
Minor
|
|
Reporter:
|
Vincent Behar
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
_______________________________________________
logback-dev mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-dev