[enh] image-proxy : handle ETag and date related headers, add hash to URL

This commit is contained in:
dalf 2015-01-17 21:54:40 +01:00
parent a865e6672f
commit b6d27aca59
2 changed files with 28 additions and 4 deletions

View file

@ -206,3 +206,11 @@ def format_date_by_locale(date_string, locale_string):
except:
logger.warning('cannot set original locale: {0}'.format(orig_locale))
return formatted_date
def dict_subset(d, properties):
result = {}
for k in properties:
if k in d:
result[k] = d[k]
return result