Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

post request header as 'application/x-www-form-urlencoded', request body just like to json? #444

Open
ruiyongsheng opened this issue Sep 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ruiyongsheng
Copy link

Environment

"nuxt": "3.13.2",
"ofetch": "1.4.0"

Reproduction

no link

Describe the bug

I use Nuxt3 framework, When I make a request

request header content-type:application/x-www-form-urlencoded

$fetch(url, {
  method: 'post',
  headers: {
    'Content-Type': 'application/x-www-form-urlencoded',
  },
})

Before 1.4.0 (use v1.3.4):

image

click view source

cvId=4636bb5e6d50441a1nd729W0FVFZxI6-Vfqe&cvName=resume-q

Now:
use 1.4.0

image

click view source:

{"cvId":"eafxxxE1NTxIi3V_4~","cvName":"111"}

It should be that ofetch was also updated when nuxt was updated.

Now I set the version of ofetch to 1.3.4 and everything works fine

@pi0 I checked the update log of the new version, and there is no mention of the changes here. Could you please check it, thank you very much.

Additional context

No response

Logs

No response

@ruiyongsheng ruiyongsheng added the bug Something isn't working label Sep 24, 2024
@cfab
Copy link

cfab commented Sep 24, 2024

I confirm !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants