Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.12.0, 0.13.0, 0.14.0, 0.15.0, 0.14.1, 0.14.2, 0.16.0
-
None
Description
When using the Perl library with the Thrift/HttpClient.pm the following error occurs:
'Can\'t call method "clone" on unblessed reference at /usr/share/perl5/HTTP/Message.pm line 40, <GEN2> line 1.
'
This is happening because of these lines of code in Thrift/HttpClient.pm:
The HTTP::Request package expects the headers to either be an HTTP::Headers object or a plain array reference of key/value pairs. The super class HTTP::Message expects the same.
But here we are instead passing a hash reference which is incorrect.
This bug was introduced back in 2018 with this refactoring PR:
In the process the correct setting of the headers was lost.
Attachments
Issue Links
- links to