Skip to content

Commit

Permalink
fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
robkooper committed Apr 30, 2024
1 parent 0664b18 commit 1eb4746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cdrhook/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def hook():


@auth.login_required
def donwload(filename):
def download(filename):
"""
download the file
"""
Expand Down Expand Up @@ -306,7 +306,7 @@ def create_app():
# register the hook
path = urllib.parse.urlparse(config["callback_url"]).path
app.route(os.path.join(path, "hook"), methods=['POST'])(hook)
app.route(os.path.join(path, "download", "<path:filename>"), methods=['GET'])(donwload)
app.route(os.path.join(path, "download", "<path:filename>"), methods=['GET'])(download)

# start daemon thread for rabbitmq
thread = threading.Thread(target=cdrhook_listener, args=(config,))
Expand Down

0 comments on commit 1eb4746

Please sign in to comment.