Skip to content

Bugfix/api limit #38

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

Merged
merged 2 commits into from
Mar 20, 2013
Merged

Bugfix/api limit #38

merged 2 commits into from
Mar 20, 2013

Conversation

gquemener
Copy link
Contributor

The X-RateLimit-Remaining is still decrementing, even if the If-Modified-Since is set.
That's because the header date was incorrectly formated.

This PR addresses it.

stloyd and others added 2 commits March 19, 2013 20:16
If-Modified-Since format must be RFC850 compliant and in GMT timezone
BUT PHP DATE_RFC850 format keep returning UTC timezone. So, we set the
GMT timezone and force its rendering in the header.
@@ -55,23 +54,13 @@ public function getPagination()
*/
public function getApiLimit()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

By the way, this method is used nowhere

stloyd added a commit that referenced this pull request Mar 20, 2013
@stloyd stloyd merged commit 340ad2f into master Mar 20, 2013
@stloyd stloyd deleted the bugfix/api_limit branch March 20, 2013 13:24
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