Skip to content

Commit

Permalink
Merge pull request #80 from samchon/feat/method
Browse files Browse the repository at this point in the history
`HttpMigrateRouteFetcher`'s `method.toUpperCase()`.
  • Loading branch information
samchon authored Nov 22, 2024
2 parents 7895220 + dc03c59 commit bd4c1c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@samchon/openapi",
"version": "1.2.3",
"version": "1.2.4",
"description": "OpenAPI definitions and converters for 'typia' and 'nestia'.",
"main": "./lib/index.js",
"module": "./lib/index.mjs",
Expand Down
4 changes: 2 additions & 2 deletions src/http/HttpMigrateRouteFetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const _Propagate = async (
};
const init: RequestInit = {
...(props.connection.options ?? {}),
method: props.route.method,
method: props.route.method.toUpperCase(),
headers: (() => {
const output: [string, string][] = [];
for (const [key, value] of Object.entries(headers))
Expand Down Expand Up @@ -98,7 +98,7 @@ const _Propagate = async (

if (status === 200 || status === 201) {
// SUCCESS CASE
if (props.route.method === "head") return out(undefined);
if (props.route.method.toUpperCase() === "HEAD") return out(undefined);
else if (
props.route.success === null ||
props.route.success.type === "text/plain"
Expand Down

0 comments on commit bd4c1c6

Please sign in to comment.