Skip to content

Commit 1bdf726

Browse files
committed
feat: issue openwallet-foundation#2068 Allow HEAD requests to default route
Signed-off-by: John Kent <johnekent@gmail.com>
1 parent ea31bd7 commit 1bdf726

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repos:
1212
hooks:
1313
- id: black
1414
stages: [commit]
15-
- repo: https://gitlab.com/pycqa/flake8
15+
- repo: https://github.com/pycqa/flake8.git
1616
rev: 3.9.0
1717
hooks:
1818
- id: flake8

aries_cloudagent/admin/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ async def setup_context(request: web.Request, handler):
433433
)
434434

435435
server_routes = [
436-
web.get("/", self.redirect_handler, allow_head=False),
436+
web.get("/", self.redirect_handler, allow_head=True),
437437
web.get("/plugins", self.plugins_handler, allow_head=False),
438438
web.get("/status", self.status_handler, allow_head=False),
439439
web.get("/status/config", self.config_handler, allow_head=False),

0 commit comments

Comments
 (0)