Protect against non-arrays when fetching headers
authorChad Horohoe <chadh@wikimedia.org>
Tue, 17 Sep 2013 01:10:47 +0000 (18:10 -0700)
committerChad Horohoe <chadh@wikimedia.org>
Tue, 17 Sep 2013 17:38:14 +0000 (10:38 -0700)
commit9c57e5f5f5cf1b06717c420782931bfd04e22d58
treedb4f1840ba6f653baa45f722ee7535da77486538
parent9c7d763a107d740f8f9841469389b62c9ca33575
Protect against non-arrays when fetching headers

PHP documentation says this can theoretically return false on failure.

HHVM actually returns null when running from the command line, so
this does protect against that.

Change-Id: I0d75b8ed209128a9667ce1e7189597ae9ebc8af6
includes/WebRequest.php