Skip to content

Commit

Permalink
TAMa: strip of leading and trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
kcvajgf committed Sep 26, 2023
1 parent 9420e42 commit b521da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cms/server/contest/handlers/tasksubmission.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def extract_files_from_request(request):
filename = arg[len(prefix):] # python3.8 doesn't have removeprefix
files.setdefault(filename, []).extend(HTTPFile(
filename=filename,
body=value,
body=value.strip(),
content_type='application/octet-stream',
) for value in values if value.strip())

Expand Down

0 comments on commit b521da5

Please sign in to comment.