olbers / iui

Automatically exported from code.google.com/p/iui
MIT License
0 stars 0 forks source link

missing xhr.setRequestHeader(header, iui.httpHeaders[header]); #196

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
line 136, 137 look like:

            xhr.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");
            data = iui.param(args);

they should be:

            xhr.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");
            xhr.setRequestHeader(header, iui.httpHeaders[header]);
            data = iui.param(args);

Original issue reported on code.google.com by lictor4@gmail.com on 30 Nov 2009 at 7:24

GoogleCodeExporter commented 9 years ago
I'm not sure which version of iUI you're referencing, but I assume it is 
0.40-dev1.  If so, shouldn't the loop on 
lines 139-142 add the header(s) via xhr. setRequestHeader() ?

Original comment by msgilli...@gmail.com on 7 Dec 2009 at 6:52