Skip to content

Commit

Permalink
Fix "Merge branch 'master' into sanitize-project"
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jul 18, 2024
1 parent b7d055a commit d8716c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scrapyd/webservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ def wrapper(self, txrequest, *args, **kwargs):
raise error.Error(code=http.BAD_REQUEST, message=b"%b '%b' is invalid" % (encoded, value))
values.append(value.decode() if type is str else type(value))
if multiple:
value = list(values)
value = values
else:
value = next(values)
value = values[0]

kwargs[dest] = value

Expand Down

0 comments on commit d8716c7

Please sign in to comment.