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

Added if-modified-since header and updated url #2

Merged
merged 4 commits into from
Dec 6, 2013

Conversation

sparkyfen
Copy link
Contributor

https://github.com/4chan/4chan-API#api-rules requires the use of 'If-Modified-Since' in each request to their server.
http://www.ietf.org/rfc/rfc2616.txt section 4.2 states that http header field names are case insensitive so I added the header in allow lower-case.

@sparkyfen
Copy link
Contributor Author

Getting super unlucky with travis builds :( sometimes they pass because 4Chan will return threads, and other times.. not so much.

@yocontra
Copy link
Owner

yocontra commented Dec 6, 2013

Great fixes! Can you break out the request options object into its own variable?

@sparkyfen
Copy link
Contributor Author

Like that?

@yocontra
Copy link
Owner

yocontra commented Dec 6, 2013

perfect - nice job!

yocontra added a commit that referenced this pull request Dec 6, 2013
Added if-modified-since header and updated url
@yocontra yocontra merged commit 43a92cb into yocontra:master Dec 6, 2013
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.

None yet

2 participants