Fixed download bug

Fixed a bug, before I was using function array deferencing $signed->getRequestHeaders()['authorization'], which is not supported in PHP versions before 5.4.