mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-24 08:51:27 -04:00
Tests: Support HEAD requests in oci-registry-server
This just does a GET, which is not quite right, but will work. This is needed for the authenticator.
This commit is contained in:
committed by
Alexander Larsson
parent
4d79110cb6
commit
530475b9ab
@@ -135,6 +135,9 @@ class RequestHandler(http_server.BaseHTTPRequestHandler):
|
||||
else:
|
||||
self.wfile.write(response_string.encode('utf-8'))
|
||||
|
||||
def do_HEAD(self):
|
||||
return self.do_GET()
|
||||
|
||||
def do_POST(self):
|
||||
if self.check_route('/testing/@repo_name/@tag'):
|
||||
repo_name = self.matches['repo_name']
|
||||
|
||||
Reference in New Issue
Block a user