protected function setupRequest(Http\Request $request) { parent::setupRequest($request); $request->setHeader('Connection', 'close'); $request->addHeader('User-Agent', 'Bitbang/' . Http\Library::VERSION . ' (Stream)'); }
protected function setupRequest(Http\Request $request) { parent::setupRequest($request); $request->addHeader('Connection', 'keep-alive'); $request->addHeader('User-Agent', 'Bitbang/' . Http\Library::VERSION . ' (cURL)'); }