@@ -188,10 +188,14 @@ def serialize_to_request(self, parameters, operation_model):
188
188
self .DEFAULT_METHOD )
189
189
# The query serializer only deals with body params so
190
190
# that's what we hand off the _serialize_* methods.
191
+ serialized ['headers' ].update (
192
+ {
193
+ 'Action' : operation_model .name ,
194
+ 'Version' : operation_model .metadata ['apiVersion' ],
195
+ }
196
+ )
197
+ body_params = {}
191
198
192
- body_params = self .MAP_TYPE ()
193
- body_params ['Action' ] = operation_model .name
194
- body_params ['Version' ] = operation_model .metadata ['apiVersion' ]
195
199
if shape is not None :
196
200
self ._serialize (body_params , parameters , shape )
197
201
else :
@@ -358,15 +362,14 @@ def serialize_to_request(self, parameters, operation_model):
358
362
serialized ['method' ] = operation_model .http .get ('method' ,
359
363
self .DEFAULT_METHOD )
360
364
361
- serialized ['query_string' ] = self .MAP_TYPE (
362
- Action = operation_model .name , Version = operation_model .metadata ['apiVersion' ]
363
- )
365
+ serialized ['query_string' ] = self .MAP_TYPE ()
364
366
365
367
serialized ['headers' ] = {
366
368
'X-Amz-Target' : target ,
367
369
'Content-Type' : 'application/json' ,
368
370
'Accept' : 'application/json' ,
369
-
371
+ 'Action' : operation_model .name ,
372
+ 'Version' : operation_model .metadata ['apiVersion' ]
370
373
}
371
374
body = {}
372
375
input_shape = operation_model .input_shape
0 commit comments