Skip to content

Commit 40a2387

Browse files
authored
Merge pull request #1251 from swagger-api/typescript-fetch-nullify
nullify URL search field instead of delete
2 parents 419d417 + 7cde668 commit 40a2387

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/resources/handlebars/typescript-fetch/api.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class BaseAPI {
5252
this.basePath = configuration.basePath || this.basePath;
5353
}
5454
}
55-
};
55+
}
5656

5757
/**
5858
*
@@ -222,7 +222,7 @@ export const {{classname}}FetchParamCreator = function (configuration?: Configur
222222
{{/bodyParam}}
223223
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
224224
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
225-
delete localVarUrlObj.search;
225+
localVarUrlObj.search = null;
226226
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
227227
{{#hasFormParams}}
228228
localVarRequestOptions.body = localVarFormParams.toString();

0 commit comments

Comments
 (0)