Skip to content

Make sure to add accept header - #415

Merged
cursedcoder merged 2 commits into
KnpLabs:masterfrom
Nyholm:header
Aug 1, 2016
Merged

cursedcoder merged 2 commits into
KnpLabs:masterfrom
Nyholm:header

Conversation

@Nyholm

@Nyholm Nyholm commented Jul 31, 2016

Copy link
Copy Markdown
Collaborator

This PR makes sure we always add the Accept header. It does also make sure we add a new Accept header when we set the api_version option.

This will fix #411

@GrahamCampbell

Copy link
Copy Markdown
Contributor

This seems a little bit hacky tbh. It would be more desirable to seek a design that doesn't involve such messy state manipulation?

@Nyholm

Nyholm commented Jul 31, 2016

Copy link
Copy Markdown
Collaborator Author

Do you have any suggestions? One could remove the getOption function completely and just have a setVersion.

@Nyholm

Nyholm commented Jul 31, 2016

Copy link
Copy Markdown
Collaborator Author

setOption and getOption are removed.

@cursedcoder
cursedcoder merged commit 489868b into KnpLabs:master Aug 1, 2016
@cursedcoder

Copy link
Copy Markdown
Contributor

good job @Nyholm we will need to add a page about that in the docs

@Nyholm

Nyholm commented Aug 1, 2016

Copy link
Copy Markdown
Collaborator Author

Thank you for merging.

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.

Setting the api_version broken on master

3 participants