There was an error while loading. Please reload this page.
1 parent dc21a60 commit 0c9bf6fCopy full SHA for 0c9bf6f
1 file changed
vulnerabilities/helpers.py
@@ -23,9 +23,9 @@
23
import json
24
import re
25
26
+import yaml
27
import requests
28
import toml
-import yaml
29
30
31
def load_yaml(path):
@@ -43,13 +43,6 @@ def load_toml(path):
43
return toml.load(f)
44
45
46
-# FIXME: this is NOT how etags work .
47
-# We should instead send the proper HTTP header
48
-# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match
49
-# and integrate this finely in the processing as this typically needs to use
50
-# streaming=True requests, and proper handling of the HTTP return code
51
-# In all cases this ends up being a single request, not a HEADD followed
52
-# by another real request
53
def create_etag(data_src, url, etag_key):
54
"""
55
Etags are like hashes of web responses. For a data source `data_src`,
0 commit comments