Skip to content

Commit

Permalink
Force content-type for cloud tasks again
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroCool2u committed Jul 5, 2023
1 parent 8057a59 commit b6f9478
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ def schedule_fact_tasks(target_phone: str, target_name: str, fact_type: str, sta
'app_engine_http_request': { # Specify the type of request.
'http_method': 'POST',
'relative_uri': '/send',
'content-type': 'application/json'
'headers': {
'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 b6f9478

Please sign in to comment.