Skip to content

Commit

Permalink
fix: form serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
npenin committed Feb 7, 2024
1 parent d45c28a commit 69c521c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class FetchHttp implements Http<Response>
}


public static serialize(obj, prefix?: string)
public static serialize(obj, prefix?: string): string
{
return map(obj, function (value, key: string)
{
Expand All @@ -177,7 +177,7 @@ export class FetchHttp implements Http<Response>
{
return (prefix || '') + encodeURIComponent(key) + '=' + encodeURIComponent(value);
}
}, true)
}, true).join('&')
}

}
Expand Down

0 comments on commit 69c521c

Please sign in to comment.