forked from I2P_Developers/i2p.i2p
propagate from branch 'i2p.i2p' (head cbfe85d22c4d0b05c901db3fa751b57889d9b2d6)
to branch 'i2p.i2p.str4d.cleanup' (head 94fe1764f50b459da18222434034ad46d604c7a1)
This commit is contained in:
@@ -28,6 +28,7 @@ import java.io.InputStream;
|
||||
import java.util.Enumeration;
|
||||
import java.util.Hashtable;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpSession;
|
||||
@@ -135,10 +136,10 @@ public class RequestWrapper {
|
||||
String result = null;
|
||||
if( multiPartRequest != null ) {
|
||||
Hashtable<String, String> params = multiPartRequest.getParams( partName );
|
||||
for( Enumeration<String> e = params.keys(); e.hasMoreElements(); ) {
|
||||
String key = e.nextElement();
|
||||
for( Map.Entry<String, String> e : params.entrySet() ) {
|
||||
String key = e.getKey();
|
||||
if( key.toLowerCase(Locale.US).compareToIgnoreCase( "content-type") == 0 ) {
|
||||
String value = (String)params.get( key );
|
||||
String value = e.getValue();
|
||||
int i = value.indexOf( ";" );
|
||||
if( i != -1 )
|
||||
result = value.substring( 0, i );
|
||||
|
Reference in New Issue
Block a user