[ISSUE 375] - removed utility class rendering for file and formdata handling

This commit is contained in:
adityamayukhsom
2024-04-03 12:47:55 +05:30
parent 623abe3611
commit 02b10c979c

View File

@ -116,19 +116,6 @@ echo $response;
var templateStart = jj.Template(kTemplateStart); var templateStart = jj.Template(kTemplateStart);
result += templateStart.render(); result += templateStart.render();
// if the request does not contain any file uploads, we do not need
// to add the class for File in the request
if (requestModel.hasFileInFormData) {
result += kFileClassString;
}
//adds the function to build formdata with or without 'file' type
if (requestModel.hasFormData) {
result += requestModel.hasFileInFormData
? kBuildFormDataFunctionWithFilesString
: kBuildFormDataFunctionWithoutFilesString;
}
var templateUri = jj.Template(kTemplateUri); var templateUri = jj.Template(kTemplateUri);
//renders the request body contains the HTTP method associated with the request //renders the request body contains the HTTP method associated with the request