You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2004/05/05 17:14:24 UTC
DO NOT REPLY [Bug 28786] New: -
Can't remove the first Header with the HeaderManager
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28786>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28786
Can't remove the first Header with the HeaderManager
Summary: Can't remove the first Header with the HeaderManager
Product: JMeter
Version: 2.0.0
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: HTTP
AssignedTo: jmeter-dev@jakarta.apache.org
ReportedBy: ben.derouet@laposte.net
I notice a problem in org.apache.jmeter.protocol.http.control.HeaderManager
at line 291 in removeHeaderNamed.
The for loop ignore the first header (element 0).
So it is impossible to remove this first element.
The loop should look like :
for (int i = getHeaders().size() - 1; i >= 0; i--)
and not :
for (int i = getHeaders().size() - 1; i > 0; i--)
Thanks for the work made on JMeter.
Regards
Benoit
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org