https://bz.apache.org/bugzilla/show_bug.cgi?id=65884

--- Comment #2 from Felix Schumacher <felix.schumac...@internetallee.de> ---
Created attachment 38197
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=38197&action=edit
Allow unquoted tokens for values in content disposition header

The exceptions comes from our headers parser. It expects quotes around the
values for the content-disposition element fields.

If you change the header from

content-disposition: form-data; name=file; filename=test.pdf

to

content-disposition: form-data; name="file"; filename="test.pdf"

it will display the sample results without problem.

Attached is a fix for this, that replaces our homegrown parser with one from
the httpcomponents project, which has no trouble to parse either of the lines.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to