@@ -90,7 +90,7 @@ def create_task(project, location, queue):
90
90
91
91
task = {
92
92
'app_engine_http_request' : {
93
- 'http_method' : ' POST' ,
93
+ 'http_method' : tasks . HttpMethod . POST ,
94
94
'relative_uri' : '/update_counter' ,
95
95
'app_engine_routing' : {
96
96
'service' : 'worker'
@@ -120,7 +120,7 @@ def create_tasks_with_data(project, location, queue):
120
120
121
121
task1 = {
122
122
'app_engine_http_request' : {
123
- 'http_method' : ' POST' ,
123
+ 'http_method' : tasks . HttpMethod . POST ,
124
124
'relative_uri' : '/update_counter?key=blue' ,
125
125
'app_engine_routing' : {
126
126
'service' : 'worker'
@@ -130,7 +130,7 @@ def create_tasks_with_data(project, location, queue):
130
130
131
131
task2 = {
132
132
'app_engine_http_request' : {
133
- 'http_method' : ' POST' ,
133
+ 'http_method' : tasks . HttpMethod . POST ,
134
134
'relative_uri' : '/update_counter' ,
135
135
'app_engine_routing' : {
136
136
'service' : 'worker'
@@ -165,7 +165,7 @@ def create_task_with_name(project, location, queue, task_name):
165
165
task = {
166
166
'name' : client .task_path (project , location , queue , task_name ),
167
167
'app_engine_http_request' : {
168
- 'http_method' : ' GET' ,
168
+ 'http_method' : tasks . HttpMethod . GET ,
169
169
'relative_uri' : '/url/path'
170
170
}
171
171
}
0 commit comments