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 sending User-Agent string to prerenderer. #34

Merged
merged 2 commits into from
Jan 8, 2020

Conversation

zekzekus
Copy link
Contributor

Makes changes to argument signature of the BackendBase method get_response_for_url()

Whole credit goes to @jdotjdot .

I just removed one redundant commit (it already handled on master branch at the moment) and fix the conflict on AUTHORS file.

Now i am open to suggestions to make this PR better. For example i think it is a better idea to pass only user agent to backend not whole django request. Also if you can clarify how to setup development environment (to run tests etc.) it would be great to make a better contribution.

Makes changes to argument signature of the BackendBase method get_response_for_url()
@zekzekus
Copy link
Contributor Author

I just fixed broken tests. Actual tests for added functionality will follow.

Copy link
Collaborator

@pcraciunoiu pcraciunoiu left a comment

Choose a reason for hiding this comment

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

Any tests for this would be great @zekzekus do you wanna give that a go before I merge?

@pcraciunoiu
Copy link
Collaborator

I just fixed broken tests. Actual tests for added functionality will follow.

Just saw this!

@zekzekus
Copy link
Contributor Author

zekzekus commented Jan 8, 2020

It seems I won't able to work on the tests for a while. So it's up to you merge this or not. For your information I did push this to production via my fork and according to our SEO agency it worked like a charm.

@pcraciunoiu
Copy link
Collaborator

Alright! Better for people to benefit than to hold this off. Thanks!

@pcraciunoiu pcraciunoiu merged commit 5492876 into skoczen:master Jan 8, 2020
@pcraciunoiu
Copy link
Collaborator

Uploaded the release 0.3.3 to pypi.

On a separate note, are you running python 3? I assume no, but in case you do, an upgrade to support it would be great.

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.

3 participants