Skip to content

Commit

Permalink
Force content-type for cloud tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroCool2u committed Jul 5, 2023
1 parent 82473a1 commit 8057a59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ def schedule_fact_tasks(target_phone: str, target_name: str, fact_type: str, sta
task = {
'app_engine_http_request': { # Specify the type of request.
'http_method': 'POST',
'relative_uri': '/send'
'relative_uri': '/send',
'content-type': 'application/json'
}
}
tasks.append(create_fact_task(task, target_phone, target_name, fact_type, send_time=d, task_queue_size=len(dr),
Expand Down

0 comments on commit 8057a59

Please sign in to comment.