Skip to content

Commit

Permalink
Follow redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
friedelwolff committed Mar 2, 2015
1 parent 187f95e commit 64f6a16
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions virtaal/support/httpclient.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2008-2011 Zuza Software Foundation
# 2013 Friedel Wolff
# 2013,2015 Friedel Wolff
#
# This file is part of Virtaal.
#
Expand Down Expand Up @@ -165,7 +164,7 @@ class RESTRequest(HTTPRequest):
"""Single HTTP REST request, blocking if used standalone."""

def __init__(self, url, id, method='GET', data=None, headers=None, user_agent=None, params=None):
super(RESTRequest, self).__init__(url, method, data, headers, user_agent=user_agent)
super(RESTRequest, self).__init__(url, method, data, headers, user_agent=user_agent, follow_location=True)

url = self.url
self.id = id
Expand Down

0 comments on commit 64f6a16

Please sign in to comment.