How to remove
Setting the User-Agent via
var xhr = Titanium.Network.createHTTPClient();
xhr.setRequestHeader('User-Agent','Mozilla/5.0 (Macintosh; U;
Intel Mac OS X 10.6; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8');
results in the app sending a User-Agent containing the aforementioned string plus "Appcelerator Titanium/1.0.0 (iPhone Simulator/3.1; iPhone OS; en_US;)"
.
Is there any way to prevent the User-Agent Header from being tampered with?
TIA!
Edit: Sorry about the messed-up title, there seems to be no way to fix it… :(
1 Answer
-
Accepted Answer
I have fixed this problem and it will be available in today's 1.1 release. Issue