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

Add support for lower case headers in pagination #57

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

stromgren
Copy link

In some cases the webserver only return lowercase headers which leads to an error being thrown when the pagination tries to index the array with headers.

This adds methods to fix this issue.

In some cases the webserver only return lower case headers which leads to an error
being thrown when the pagination tries to index the array with headers.

This adds methods to fix this issue.
*
* @return string
*/
public function getHeaderWithCase($header) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opening brace should be on a new line

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

/**
* @test
*/
public function headers_are_converted_to_lower_case_when_requested()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method name WoocommerceClientTest::headers_are_converted_to_lower_case_when_requested is not in camel caps format

@coveralls
Copy link

coveralls commented Nov 20, 2019

Coverage Status

Coverage remained the same at 100.0% when pulling 50cff6a on stromgren:header-case-sensitivity into d89e5c5 on pixelpeter:master.

@stromgren
Copy link
Author

@pixelpeter This pull request has been sitting here for a bit over a year now. Seems to be a problem for more people than me. Any reason for it not being merged? Thanks!

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.

4 participants