API: Recognize an "Api-User-Agent" header
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 18 Nov 2014 19:33:09 +0000 (14:33 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Tue, 18 Nov 2014 19:40:14 +0000 (14:40 -0500)
commit28e75cfb710be11c18a7e9b8611679df556eba8d
tree543ccde9972d8d1713fecc9a1c7b2185fc2c13e9
parent3bd3a3c044410cdfeb0f9b5e5576238df3ecff29
API: Recognize an "Api-User-Agent" header

XMLHttpRequest does not allow overriding the "User-Agent" header. To
allow such clients to make effective use of the api-feature-usage log,
let's give them a different header they can use.

Change-Id: Ia1e4f52f35f8d9a8e9f5590a00854d14c11f7cc9
includes/api/ApiBase.php
includes/api/ApiMain.php