]> git.phdru.name Git - bookmarks_db.git/commitdiff
Feat(get_url): Print headers
authorOleg Broytman <phd@phdru.name>
Wed, 31 Jul 2024 22:25:07 +0000 (01:25 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 1 Aug 2024 04:16:25 +0000 (07:16 +0300)
get_url.py

index 47b9e4427788e92ed2cee5ba61124f7e12b3295c..2372367d48a096977bd6d5cb42843aa95547eb4a 100755 (executable)
@@ -39,6 +39,7 @@ def run():
         print("Moved to: %s" % redirect_to)
 
     else:
+        print(headers)
         with open(output_fname, 'wb') as outfile:
             outfile.write(content)