Skip to content

Commit

Permalink
Merge pull request #23 from tomsun28/patch-1
Browse files Browse the repository at this point in the history
fix request error when url length more than 2048
  • Loading branch information
iamtraction committed Jan 18, 2021
2 parents b15b464 + 10ec829 commit 1c4bc0b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ async function translate(text, options) {
`${baseUrl}?${querystring.stringify(data)}`,
{
method: "POST",
form: true,
body: {
form: {
q: text
}
}
Expand Down

0 comments on commit 1c4bc0b

Please sign in to comment.