Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fetch method does not work correctly #151

Closed
tomsan96 opened this issue Mar 16, 2022 · 1 comment
Closed

fetch method does not work correctly #151

tomsan96 opened this issue Mar 16, 2022 · 1 comment

Comments

@tomsan96
Copy link

Hi,
alfy.fetch method does not work correctly.
options does not work.

import alfy from 'alfy';
await alfy.fetch("https://xxxxx", {
    method: 'POST'
})

In this case, it is executed as get method instead of post method.

package.json

{
  "name": "sample",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "dependencies": {
    "alfy": "^0.12.2"
  },
  "type": "module"
}
  • Alfred4
  • Node.js v16.13.1
  • Mac
    • Apple M1 Pro
    • Monterey
@tomsan96
Copy link
Author

Thanks for the quick fix!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant