{"push_id":692645097,"size":1,"distinct_size":1,"ref":"refs/heads/wmf/1.26wmf9","head":"ab6a4c3b626adfa43244e79eaa680fd43e4e8ebe","before":"5d23be746f072f9a0ee829b047f9c5da148cda4a","commits":[{"sha":"ab6a4c3b626adfa43244e79eaa680fd43e4e8ebe","author":{"email":"a348a171a7681d9dadbef95e60574c8370431eb3@wikimedia.org","name":"Bryan Davis"},"message":"AjaxResponse: Fix broken logic for extracting HTTP status codes\n\nFollows-up 6584cef207 (r16266; 2006; MediaWiki 1.8.0).\nThis regex was just trimming whitespace from the start of the string. It\nmatched whitespace, then a match group for a first sequence of digits. The\nreplacement is just the digits match. This is essentially `ltrim()`. It didn't\naccount for the content after the match.\n\n> echo preg_replace( '/^ *(\\d+)/', '\\1', '200 OK' );\n> \"200 OK\"\n\nThis was causing:\n> Warning: Unknown HTTP status code 200 OK in libs/HttpStatus.php:100\n> Warning: Unknown HTTP status code 304 Not Modified OK in libs/HttpStatus.php:100\n\nIt defaults to HTTP 200. So presumbaly the impact was low. Though it may've caused\n304 responses to have been broken (content body missing).\n\nBug: T102028\nChange-Id: Iafff9982bbbee893c13f891901dde88f998db7a6\n(cherry picked from commit 7b6890654a3ef994eb12acd2f37e93d964878288)","distinct":true,"url":"https://api.github.com/repos/wikimedia/mediawiki/commits/ab6a4c3b626adfa43244e79eaa680fd43e4e8ebe"}]}