File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
java/org/apache/catalina/core Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -732,7 +732,12 @@ void parseParameters() {
732
732
return ;
733
733
}
734
734
735
- parameters = new ParameterMap <>(getRequest ().getParameterMap ());
735
+ Map <String ,String []> requestParameters = getRequest ().getParameterMap ();
736
+ if (requestParameters instanceof ParameterMap <String ,String []>) {
737
+ parameters = new ParameterMap <>((ParameterMap <String ,String []>) requestParameters );
738
+ } else {
739
+ parameters = new ParameterMap <>(requestParameters );
740
+ }
736
741
mergeParameters ();
737
742
((ParameterMap <String ,String []>) parameters ).setLocked (true );
738
743
parsedParams = true ;
Original file line number Diff line number Diff line change 123
123
attribute value will also be used by the default and WebDAV Servlets.
124
124
(remm)
125
125
</update >
126
+ <fix >
127
+ <bug >69285</bug >: Optimise the creation of the parameter map for
128
+ included requests. Based on sample code and test cases provided by John
129
+ Engebretson. (markt)
130
+ </fix >
126
131
<fix >
127
132
<bug >69527</bug >: Avoid rare cases where a cached resource could be set
128
133
with 0 content length, or could be evicted immediately. (remm)
You can’t perform that action at this time.
0 commit comments