Skip to content

Add additionalHeaders to the header of the request#42

Open
JonoHall wants to merge 2 commits intoPrintNode:masterfrom
JonoHall:master
Open

Add additionalHeaders to the header of the request#42
JonoHall wants to merge 2 commits intoPrintNode:masterfrom
JonoHall:master

Conversation

@JonoHall
Copy link

@JonoHall JonoHall commented Apr 6, 2021

additionalHeaders can be set in the client, but they are not being used for the reponse. Looks like they are missing from the getHeaders() function.

This simple fix, allows users to set headers such as the Idempotency header as per the API manual:

$client = new \PrintNode\Client($credentials);
$client->additionalHeaders = array('X-Idempotency-Key: abcde12345');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant