Skip to content

Commit

Permalink
extra headers must be a dictionary
Browse files Browse the repository at this point in the history
a missing path would cause http handler errors
  • Loading branch information
totaam committed Sep 7, 2024
1 parent f267241 commit ea68949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/net/http/directory_listing.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def list_directory(path:str):
try:
dirlist = os.listdir(path)
except OSError:
return 404, None, b"No permission to list directory"
return 404, {}, b"No permission to list directory"
dirlist.sort(key=lambda a: a.lower())
r = []
try:
Expand Down

0 comments on commit ea68949

Please sign in to comment.