forked from Icycoide/searxng
[enh] image-proxy : handle ETag and date related headers, add hash to URL
This commit is contained in:
parent
a865e6672f
commit
b6d27aca59
2 changed files with 28 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue