Skip to content

Commit

Permalink
Fixed fieldname
Browse files Browse the repository at this point in the history
  • Loading branch information
ifduyue committed Aug 3, 2023
1 parent a2b1dc5 commit 33cf3e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion urlfetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ def encode_multipart(data, files):
body.write(b"Content-Type: application/octet-stream\r\n\r\n")
else:
writer(body).write(
'Content-Disposition: form-data; name="%s"' "\r\n" % name
'Content-Disposition: form-data; name="%s"' "\r\n" % fieldname
)
body.write(b"Content-Type: text/plain\r\n\r\n")

Expand Down

0 comments on commit 33cf3e6

Please sign in to comment.