assaf/zombie — Issue #261: Support content-length for multipart/form-data
Author: renansaddam
Created: 2012-01-17 12:05:45+00:00
State: open

Following #204.

Hi @assaf, @sbange,

The content-type of the form is "multipart/form-data" and the method is POST.
When I dump the resources, this is the output:

```
URL: http://care.true.sad/tickets/add/
Time: 3ms
Size: 0.1767578125kb
Request:
{ 'content-type': 'multipart/form-data; boundary=13268016886330.3036425563041121',
referer: 'http://care.true.sad/tickets/add',
'User-Agent': 'tobi',
Host: 'care.true.sad',
cookie: 'SESSID_TRUECARE=uhddo0bj7h5mesa43j3iuc2rl4; truecare_App_navigation_active=%7B%0A++%22parentId%22%3A+%222%22%2C%0A++%22childId%22%3A+%221%22%0A%7D' }

Response:
411 Length Required
{ server: 'nginx/0.7.65',
date: 'Tue, 17 Jan 2012 12:01:28 GMT',
'content-type': 'text/html',
'content-length': '181',
connection: 'close' }

411 Length Required

411 Length Required

nginx/0.7.65

```

I see that it does not calculate the content-length using "multipart/form-data".
I tried adding the header on the resources.coffee but I only gave me errors.