Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass content-type header to fix filters #22

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from

Conversation

WouterSioen
Copy link

I was implementing this library using the a Guzzle7 http client. When trying to do a request to companies.list with a filter, the filter did not seem to be applied.

By changing my own Guzzle Client to always pass the Content-Type header, this was fixed. This shouldn't be necessary to configure on the outside though since the library itself knows that it always sends JSON bodies. Let's thus adapt the API Client itself so that custom http clients don't have to add this header themselves.

I was implementing this library using the a Guzzle7 http client. When
trying to do a request to `companies.list` with a filter, the filter did
not seem to be applied.

By changing my own Guzzle Client to always pass the `Content-Type`
header, this was fixed. This shouldn't be necessary to configure on the
outside though since the library itself knows that it always sends JSON
bodies. Let's thus adapt the API Client itself so that custom http
clients don't have to add this header themselves.
@WouterSioen
Copy link
Author

Any chance of getting this merged and released?

@mark-gerarts
Copy link
Collaborator

@BramG @wimvds this looks good to me. I don't use this library anymore, so maybe it's best if you do a quick check & merge?

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.

2 participants