add: if(args.headers){ for(var hdr in args.headers){ if(hdr.toLowerCase() === "content-type" && !args.contentType){ args.contentType = args.headers[hdr]; }else{ ioArgs.xhr.setRequestHeader(hdr, args.headers[hdr]); } } } 
context: 	var _doIt = function(/*String*/type, /*Deferred*/dfd){		// IE 6 is a steaming pile. It won't let you call apply() on the native function (xhr.open).		// workaround for IE6's apply() "issues"		var ioArgs = dfd.ioArgs;		var args = ioArgs.args;		ioArgs.xhr.open(type, ioArgs.url, (args.sync !== true), (args.user ? args.user : undefined), (args.password ? args.password: undefined));		// FIXME: is this appropriate for all content types?		ioArgs.xhr.setRequestHeader("Content-Type", (args.contentType||_defaultContentType));		// FIXME: set other headers here!		try{			ioArgs.xhr.send(ioArgs.query);		}catch(e){			// dfd.cancel();			ioArgs.cancel();		}		dojo._ioWatch(dfd, _validCheck, _ioCheck, _resHandle);		return dfd; //Deferred	}
meta: 4497	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4497/ed6c094d23f54574c5cfe7fdb2f25319960048bf/xhr.js/clean/_base/xhr.js