Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tasks: lint by rules E231 W293
  • Loading branch information
jlsneto authored Aug 11, 2020
commit a76f57c7d6f5cd5706902a1853d732212842e0f9
4 changes: 2 additions & 2 deletions tasks/create_http_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def create_http_task(project,
# Convert dict to JSON string
payload = json.dumps(payload)
# specify http content-type to application/json
task['http_request']['headers'] = {'Content-type':'application/json'}
task['http_request']['headers'] = {'Content-type': 'application/json'}

# The API expects a payload of type bytes.
converted_payload = payload.encode()

Expand Down