We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca151e7 commit 4afaaefCopy full SHA for 4afaaef
vtalerts-ipaws/vt_cap_to_atom.py
@@ -94,6 +94,10 @@ def do_GET(self):
94
atom_feed = fetch_and_translate_feed(self.headers['Host'], feed=self.path.endswith("feed"))
95
if atom_feed:
96
self.wfile.write(atom_feed.encode('utf-8'))
97
+ else:
98
+ self.send_response(301)
99
+ self.send_header("Location", "/IPAWSOPEN_EAS_SERVICE/rest/update")
100
+ self.end_headers()
101
102
server_address = (SERVER_HOST, SERVER_PORT)
103
httpd = HTTPServer(server_address, IPAWSHandler)
0 commit comments