Fix 7511: [Ada] Client call is not correct with multiple parameters and application/x-www-urlencoded (#7512)

* Fix calling the 'Call' procedure to submit the request for the Ada client when a request
has form parameters

* Rebuild the files by running bin/ada-petstore.sh
This commit is contained in:
Stephane Carrez
2018-01-28 07:54:36 +01:00
committed by William Cheng
parent 3035bc629b
commit 4bd8fc6e8a
2 changed files with 3 additions and 3 deletions

View File

@@ -130,7 +130,7 @@ package body Samples.Petstore.Clients is
URI.Set_Path ("/pet/{petId}");
URI.Set_Path_Param ("petId", Swagger.To_String (Pet_Id));
Client.Call (Swagger.Clients.POST, URI);
Client.Call (Swagger.Clients.POST, URI, Req);
end Update_Pet_With_Form;
-- uploads an image
@@ -151,7 +151,7 @@ package body Samples.Petstore.Clients is
URI.Set_Path ("/pet/{petId}/uploadImage");
URI.Set_Path_Param ("petId", Swagger.To_String (Pet_Id));
Client.Call (Swagger.Clients.POST, URI, Reply);
Client.Call (Swagger.Clients.POST, URI, Req, Reply);
Samples.Petstore.Models.Deserialize (Reply, "", Result);
end Upload_File;