Bug #29755: Apply patch from Vitaliy Filippov so that MW's HTTP client