Skip to content

Commit

Permalink
Disallows redirects, bumps to 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
skoczen committed Feb 5, 2015
1 parent 0b36f86 commit db49658
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ Please add tests to any new functionality - you can run tests with `python manag

# Releases

### 0.3.0 - Feb 5, 2015

* Fixes to the `update_url` method, thanks to [denisvlr](https://github.com/denisvlr).
* Optimizations in lookups, thanks to [mattrobenolt](https://github.com/mattrobenolt).
* Changes behavior to more sanely not follow redirects, per [#9](https://github.com/skoczen/django-seo-js/issues/9), thanks to [denisvlr](https://github.com/denisvlr) and [mattrobenolt](https://github.com/mattrobenolt).

### 0.2.4 - August 12, 2014

Expand Down
2 changes: 1 addition & 1 deletion django_seo_js/backends/prerender.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_response_for_url(self, url):
'X-Prerender-Token': self.token,
'Accept-Encoding': 'gzip',
}
r = self.requests.get(render_url, headers=headers)
r = self.requests.get(render_url, headers=headers, allow_redirects=False)
assert int(r.status_code) < 500

return self.build_django_response_from_requests_response(r)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
VERSION = "0.2.4"
VERSION = "0.3.0"

reqs = []
with open("requirements.txt", "r+") as f:
Expand Down

0 comments on commit db49658

Please sign in to comment.