dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
c76327c
)
Merge "api.php: Use $wgRequest to retrieve User-agent string"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Wed, 23 Jul 2014 12:01:45 +0000
(12:01 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Wed, 23 Jul 2014 12:01:45 +0000
(12:01 +0000)
api.php
patch
|
blob
|
history
diff --git
a/api.php
b/api.php
index
e8a911e
..
80abc35
100644
(file)
--- a/
api.php
+++ b/
api.php
@@
-104,7
+104,7
@@
if ( $wgAPIRequestLog ) {
wfTimestamp( TS_MW ),
$endtime - $starttime,
$wgRequest->getIP(),
- $
_SERVER['HTTP_USER_AGENT']
+ $
wgRequest->getHeader( 'User-agent' )
);
$items[] = $wgRequest->wasPosted() ? 'POST' : 'GET';
if ( $processor ) {