You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Rob Tompkins (JIRA)" <ji...@apache.org> on 2017/06/05 14:53:04 UTC
[jira] [Closed] (FILEUPLOAD-204) FileItem.getHeaders() returns
always null.
[ https://issues.apache.org/jira/browse/FILEUPLOAD-204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rob Tompkins closed FILEUPLOAD-204.
-----------------------------------
1.3 released.
> FileItem.getHeaders() returns always null.
> ------------------------------------------
>
> Key: FILEUPLOAD-204
> URL: https://issues.apache.org/jira/browse/FILEUPLOAD-204
> Project: Commons FileUpload
> Issue Type: Bug
> Affects Versions: 1.2.2
> Environment: FileItem.getHeaders() returns always null.
> See below description.
> Reporter: Hakju Oh
> Assignee: Jochen Wiedmann
> Fix For: 1.3
>
>
> {code:title=FileUploadBase.java|borderStyle=solid}
> 1016: currentItem = new FileItemStreamImpl(fileName,
> 1017: fieldName, headers.getHeader(CONTENT_TYPE),
> 1018: fileName == null, getContentLength(headers));
> currentItem.setHeaders(headers); // To fix this bug.
> 1019: notifier.noteItem();
> 1026: currentItem = new FileItemStreamImpl(fileName,
> 1027: currentFieldName,
> 1028: headers.getHeader(CONTENT_TYPE),
> 1029: false, getContentLength(headers));
> currentItem.setHeaders(headers); // Here too.
> 1030: notifier.noteItem();
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)