visionmedia/superagent — Issue #63: Inconsistencies between Node & Browser
Author: jprichardson
Created: 2012-01-31 17:34:10+00:00
State: open

Hey TJ, I love Superagent because for the most part it's the same API in the browser as it is Node. Less of a mental context switch. However, the Node version and the Browser version are different.

I'd be happy to try to help clean some of this up with pull-requests. (with tests of course) So, let's start with a simple one first. Encoding of forms. In the browser you use `form-data` in Node it's `form`. As seen by:
https://github.com/visionmedia/superagent/blob/master/lib/node/index.js#L76 vs
https://github.com/visionmedia/superagent/blob/master/lib/superagent.js#L145

Since `form-data` was a more recent change, I assume you like this more?

Thanks,

JP