You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/12/20 19:42:44 UTC
[commons-fileupload] branch master updated: Update
FileUploadBase.java (#49)
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-fileupload.git
The following commit(s) were added to refs/heads/master by this push:
new 283635b Update FileUploadBase.java (#49)
283635b is described below
commit 283635b19f2484c3360504b1a4b1f7c0ba9f0970
Author: Emmanuel Lécharny <el...@apache.org>
AuthorDate: Sun Dec 20 20:42:35 2020 +0100
Update FileUploadBase.java (#49)
---
src/main/java/org/apache/commons/fileupload2/FileUploadBase.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/fileupload2/FileUploadBase.java b/src/main/java/org/apache/commons/fileupload2/FileUploadBase.java
index d8d752f..ef93788 100644
--- a/src/main/java/org/apache/commons/fileupload2/FileUploadBase.java
+++ b/src/main/java/org/apache/commons/fileupload2/FileUploadBase.java
@@ -677,7 +677,7 @@ public abstract class FileUploadBase {
}
final String headerName = header.substring(0, colonOffset).trim();
final String headerValue =
- header.substring(header.indexOf(':') + 1).trim();
+ header.substring(colonOffset + 1).trim();
headers.addHeader(headerName, headerValue);
}