Skip to content

Commit a17a889

Browse files
committed
Make 'Content-Disposition' header case insensitive
Previously 'Content-Disposition' was passed to Part.getHeader(String). However the Javadoc for that method specifies the header should be case insensitive. Note that the JavaDoc in tomcat-servlet-api doesn't mention this. It can only be found in the official api JavaDoc: http://download.oracle.com/otndocs/jcp/servlet-3.0-fr-oth-JSpec/ Issue: SPR-9149
1 parent ca8b98e commit a17a889

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-web/src/main/java/org/springframework/web/multipart/support/StandardMultipartHttpServletRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2011 the original author or authors.
2+
* Copyright 2002-2012 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -41,7 +41,7 @@
4141
*/
4242
public class StandardMultipartHttpServletRequest extends AbstractMultipartHttpServletRequest {
4343

44-
private static final String CONTENT_DISPOSITION = "Content-Disposition";
44+
private static final String CONTENT_DISPOSITION = "content-disposition";
4545

4646
private static final String FILENAME_KEY = "filename=";
4747

0 commit comments

Comments
 (0)