mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
[enh] image-proxy : handle ETag and date related headers, add hash to URL
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user