Permalink
Browse files

Allow SSL for images.

  • Loading branch information...
1 parent 4f318fb commit 8e8f03dd84755d02e39858f075067638d3d6c805 @spladug spladug committed Jan 10, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 postcards/views.py
View
@@ -62,7 +62,7 @@ def home():
return render_template(
'home.html',
- url_base='http://' + app.config['S3_BUCKET'] + '.s3.amazonaws.com/',
+ url_base='//s3.amazonaws.com/' + app.config['S3_BUCKET'] + '/',
DEFAULT_THUMB='noimage.png',
pagination=pagination,
search_query=search_query,
@@ -120,7 +120,7 @@ def unpublished():
return render_template(
'unpublished.html',
- url_base='http://' + app.config['S3_BUCKET'] + '.s3.amazonaws.com/',
+ url_base='//s3.amazonaws.com/' + app.config['S3_BUCKET'] + '/',
DEFAULT_THUMB='noimage-large.png',
DEFAULT_THUMB_WIDTH=215,
DEFAULT_THUMB_HEIGHT=215,

0 comments on commit 8e8f03d

Please sign in to comment.