Fix support for HTTP/2 in MultiHttpClient
authorPaladox <thomasmulhall410@yahoo.com>
Sun, 1 Dec 2019 17:59:17 +0000 (17:59 +0000)
committerReedy <reedy@wikimedia.org>
Sun, 1 Dec 2019 19:42:30 +0000 (19:42 +0000)
commit90c137152d718c6ad88680286229dbbf2a4a75c8
tree0a4a47baa63fca6e3aeae707e128e4cc8ebd38fe
parent9579fb0605dd490f55e7d2bec5216951ada6dde8
Fix support for HTTP/2 in MultiHttpClient

Under buster, curl uses HTTP/2 (confirmed when running eval):

Buster:
GET xxx HTTP/2

Stretch:
GET xxx HTTP/1.1

The code presumes that it will always be HTTP/1.x.

We fix this by adjusting the regex to match HTTP2.

Bug: T232866
Change-Id: Ibde6036048d5939508df143ec5956abcd0718ad1
includes/libs/http/MultiHttpClient.php