Skip to content

Commit 7301292

Browse files
committed
fix: str to bytes conversion
1 parent 325313a commit 7301292

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autotest/autotest_services/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def _get_content(response):
9898
def pack_multipart_request(parts, boundary):
9999

100100
def _format_header(key, value):
101-
return b(f"{key}: {value}")
101+
return (f"{key}: {value}").encode("ascii")
102102

103103
def _generate_multipart_request(parts):
104104
yield b""

0 commit comments

Comments
 (0)