dantebronto/picard

error when POST-ing

Closed this issue · 0 comments

here's the stack trace:

TypeError: Object function (values) {
    for (var key in values) {
        this[key] = values[key];
    }
    return this;
} has no method 'split'
    at IncomingMessage. (/usr/local/src/picard/picard/lib/picard/request_extensions.js:155:29)
    at IncomingMessage. (/usr/local/src/picard/picard/lib/picard.js:16:37)
    at IncomingMessage.emit (events:25:26)
    at HTTPParser.onBody (http:94:23)
    at Stream.ondata (http:620:22)
    at IOWatcher.callback (net:373:31)
    at node.js:204:9

a fix (line 155 in request_extensions.js):

http://gist.github.com/462098