envjs / env-js

A pure-JavaScript browser environment.
http://www.envjs.com/
87 stars 19 forks source link

Ruby Racer Requests with Form Data #18

Open orslumen opened 13 years ago

orslumen commented 13 years ago

Posting form-data using Ruby Racer did not work for me.

I got it working by passing the form-data as the data argument to the HTTPConnection.go method.

Next to that my Rails App was not receiving some HTTP_xxx request headers and the response status code was not parsed correctly.

The codefixes that I used can be found in commit https://github.com/orslumen/env-js/commit/b294e1139bc12dff50e72cc4a486d43facc504c9

I am not sure though whether or not this fix would work for everyone.