ASF Bugzilla – Attachment 20153 Details for
Bug 42361
POST content type incorrect for multipart forms after login
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for org/apache/catalina/authenticator/FormAuthenticator.java
FormAuthenticator.diff (text/plain), 1.16 KB, created by
Peter Runge
on 2007-05-08 16:22:20 UTC
(
hide
)
Description:
Patch for org/apache/catalina/authenticator/FormAuthenticator.java
Filename:
MIME Type:
Creator:
Peter Runge
Created:
2007-05-08 16:22:20 UTC
Size:
1.16 KB
patch
obsolete
>--- FormAuthenticator.java.2 2007-05-08 14:51:15.359375000 +1000 >+++ FormAuthenticator.java 2007-05-08 14:54:27.703125000 +1000 >@@ -428,7 +428,13 @@ > > // Set content type > MessageBytes contentType = MessageBytes.newInstance(); >- contentType.setString("application/x-www-form-urlencoded"); >+ >+ //If no content type specified, use default for POST >+ String savedContentType = saved.getContentType(); >+ if (savedContentType == null) >+ savedContentType = "application/x-www-form-urlencoded"; >+ >+ contentType.setString(savedContentType); > request.getCoyoteRequest().setContentType(contentType); > } > } >@@ -488,6 +494,10 @@ > body.append(buffer, 0, bytesRead); > } > saved.setBody(body); >+ >+ //Save content type, cannot assume application/x-www-form-urlencoded >+ //since it could be a multi-part form >+ saved.setContentType(request.getContentType()); > } > > saved.setMethod(request.getMethod());
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 42361
:
20152
| 20153 |
20154