Closed OneHQ closed 13 years ago
My fork of the repo has the code for any number of headers: http://github.com/alunny/xui/blob/master/src/js/lib/xhr.js
Hopefully it can be pulled when Brian has a chance.
Thanks guys, looks like your'e on top of it already. Keep up the great work on this little library.
The documenation shows post as a supported method for xhr. Looking at the source code, it doesn't look like the correct request header is set onto the request if post is used. The lack of this header is stopping the XHR post from working correctly.
I chaned my local copy to use the logic below and I was able to successfully use the post option on the xhr() method.