Note: This requires a new Perl module: HTTP::Headers
Description
This PR updates DuckPAN to support passing along the $headers hash reference when creating the HTTP::Request object, by instantiating a HTTP::Headers object
Testing
This can be tested by installing the newest DDG build, and running the DuckPAN Server in the Spice repo. The Skyscanner and CocoaPods Spices have already been updated to use the new spice headers property.
Background
We've added support for Spices to use multiple headers, instead of just the
accept_header
.The changes to DuckDuckGo are awaiting merge here: https://github.com/duckduckgo/duckduckgo/pull/208
The only remaining Spice, using the
accept_header
property has been updated here: https://github.com/duckduckgo/zeroclickinfo-spice/pull/3056Note: This requires a new Perl module:
HTTP::Headers
Description
This PR updates DuckPAN to support passing along the
$headers
hash reference when creating theHTTP::Request
object, by instantiating aHTTP::Headers
objectTesting
This can be tested by installing the newest DDG build, and running the DuckPAN Server in the Spice repo. The
Skyscanner
andCocoaPods
Spices have already been updated to use the newspice headers
property./cc @jbarrett