Skip to content

Commit

Permalink
Added host setting to GSBotoStorage
Browse files Browse the repository at this point in the history
The value of this setting used to be derived from the parent class, S3BotoStorage. The value in the parent class was: `host = setting('AWS_S3_HOST', S3Connection.DefaultHost)`, which resolved to 's3.amazonaws.com' instead of the correct 'storage.googleapis.com'.
This fixed jschneier#124 for me.
  • Loading branch information
dcgoss committed Feb 29, 2016
1 parent 7875a75 commit df05cdb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions storages/backends/gs.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class GSBotoStorage(S3BotoStorage):
'application/x-javascript',
))
url_protocol = setting('GS_URL_PROTOCOL', 'http:')
host = setting('GS_HOST', GSConnection.DefaultHost)

def _save_content(self, key, content, headers):
# only pass backwards incompatible arguments if they vary from the default
Expand Down

0 comments on commit df05cdb

Please sign in to comment.