Replies: 1 comment 1 reply
-
For now I have added a method to the connector for overwriting it, but it feels like something I should be able to set on the request :) public function acceptJson()
{
$this->headers()->add('Accept', 'application/json');
return $this;
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
On my connector I have set the Accept header. The problem is that I need use another Accept header on one specific request class. Is there a way to overwrite it the class? I have tried setting it both in
defaultHeaders()
andheaders()
but none of them seem to do anything. I have also tried adding theAcceptsJson
trait, but that does not seem to do anything eitherBeta Was this translation helpful? Give feedback.
All reactions