opal-ferro
opal-ferro copied to clipboard
XHR: appears that @body is not being sent at all
This is what I enter in my Firefox JS Console: (GxG is my module name space)
Opal.GxG.$eval("Ferro::Xhr.new 'http://192.168.11.203/get_display', Proc.new {puts 'y'}, Proc.new {puts 'n'}, timeout: 10000, method: :get, body: {a: 1}"); => y
Sends the request, but on the server side no request.body() or request.params() data passed. Everything else works. Any clue about what is going on would be great. I notice on some calls that line 84 of the xhr.js.rb file of yours throws an error: Content-Length claims to be a forbidden header key to set. Note: it doesn't matter what method I choose (get/put/post/delete) ... no @body payload gets delivered. I'm scratching my head on this one.