Skip to content

Commit

Permalink
Fix suffix of filename with PGP key as ASCII
Browse files Browse the repository at this point in the history
  • Loading branch information
flashcode committed Jan 20, 2025
1 parent a7f2247 commit 51824ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weechat/dev/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def info(request, name=None):
if name in INFO_PGP_KEYS_ASC:
response = HttpResponse(get_info(name, version),
content_type='text/plain')
filename = f'weechat_{name.replace("_asc", "")}.pgp.asc'
filename = f'weechat_{name.removesuffix("_asc")}.asc'
response['Content-Disposition'] = f'attachment; filename="{filename}"'
return response
return render(
Expand Down

0 comments on commit 51824ba

Please sign in to comment.