hugg95 / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

Make goog.net.XhrIo.send() ignore case when processing Content-Type #540

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
XhrIo.send() was only looking for literal matches of XhrIo.CONTENT_TYPE_HEADER, 
which led to mangled/duplicate content type values being sent when the 
opt_headers object used a valid but differently-cased variant (in my original 
case, 'content-type').

This fix changes that (and fixes a bug in the test code as a side effect):

https://codereview.appspot.com/7340045/

Original issue reported on code.google.com by jg...@bitgirder.com on 19 Feb 2013 at 8:29

GoogleCodeExporter commented 9 years ago
CLA Note: I signed awhile ago when I made a contribution to Go, so hopefully 
that is still in effect here?

Original comment by jg...@bitgirder.com on 19 Feb 2013 at 8:32