vkholodkov/nginx-upload-module — Issue #31: multiline Content-Disposition not recognized
Author: mvrhov
Created: 2012-02-14 15:05:21+00:00
State: open

upload module only recognizes headers if they are in a single line.. the most problematic on is Content-Disposition

This one works:

```text
--FormBoundary_dNC89KxOWaziZb1mJpHL2f1m2
Content-Disposition: form-data; name="details"
Content-Type: application/json

{"uri":"fooo:\/\/fn","time":"2011-12-19T09:06:26.000"}
--FormBoundary_dNC89KxOWaziZb1mJpHL2f1m2
Content-Disposition: form-data; name="file"; filename="data taken from.txt"
Content-Type: application/octet-stream

oijgdifojgodfjgodjfogdfo
--FormBoundary_dNC89KxOWaziZb1mJpHL2f1m2--
```

This one doesn't. Please notice that the filename part is in new line and indented in this case by one space, but by RFC there can be multiple white spaces

```text
--FormBoundary_dNC89KxOWaziZb1mJpHL2f1m2
Content-Disposition: form-data; name="details"
Content-Type: application/json

{"uri":"fooo:\/\/fn","time":"2011-12-19T09:06:26.000"}
--FormBoundary_dNC89KxOWaziZb1mJpHL2f1m2
Content-Disposition: form-data; name="file";
filename="data taken from.txt"
Content-Type: application/octet-stream

oijgdifojgodfjgodjfogdfo
--FormBoundary_dNC89KxOWaziZb1mJpHL2f1m2--
```