Skip to content

Commit

Permalink
convert headers to string (#790)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelboulton committed Jun 12, 2022
1 parent c88871a commit acd7449
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tavern/_plugins/rest/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,10 @@ def prepared_request():
_get_file_arguments(request_args, stack, test_block_config)
)

headers = self._request_args.get("headers", {})
for k, v in headers.items():
headers[str(k)] = str(v)

return session.request(**self._request_args)

self._prepared = prepared_request
Expand Down

0 comments on commit acd7449

Please sign in to comment.