From d87ac4b46fdf280b97c4ae745de9914793d2ef2d Mon Sep 17 00:00:00 2001 From: adityamayukhsom Date: Wed, 3 Apr 2024 12:48:20 +0530 Subject: [PATCH] [ISSUE 375] - strip parameters from url before rendering --- lib/codegen/php/curl.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/codegen/php/curl.dart b/lib/codegen/php/curl.dart index b2f54e42..3f64d4bc 100644 --- a/lib/codegen/php/curl.dart +++ b/lib/codegen/php/curl.dart @@ -117,6 +117,7 @@ echo $response; result += templateStart.render(); var templateUri = jj.Template(kTemplateUri); + result += templateUri.render({'uri': stripUriParams(uri)}); //renders the request body contains the HTTP method associated with the request if (kMethodsWithBody.contains(requestModel.method) && requestModel.hasBody) {