UBUNTU: [Packaging] resync git-ubuntu-log

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
This commit is contained in:
Paolo Pisati
2023-11-15 14:45:23 +01:00
parent 6c1d3bd9de
commit 8f621360fc
+1 -1
View File
@@ -120,7 +120,7 @@ for key in keys:
try:
# urllib.request.urlcleanup()
request = urllib.request.Request('https://api.launchpad.net/devel/bugs/' + bug)
request.add_header('Cache-Control', 'max-age=0')
request.add_header('Cache-Control', 'no-cache')
with urllib.request.urlopen(request) as response:
data = response.read()
bug_info = json.loads(data.decode('utf-8'))