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

IPX crashes with ERR_INVALID_CHAR (Invalid character in header content ["Content-Type"]) #376

Closed
phof opened this issue Jul 29, 2021 · 1 comment

Comments

@phof
Copy link

phof commented Jul 29, 2021

Steps to reproduce (with Nuxt sandbox):

  1. Spin up sandbox, https://codesandbox.io/s/github/nuxt/image/tree/main/example
  2. Send request (manually of via built-in browser), e.g.: GET https://7wy70.sse.codesandbox.io/_ipx/images/mountains.jpg?f=%0d
  3. See console error:
    Screenshot 2021-07-29 at 10 51 55
TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["Content-Type"]
      at ServerResponse.setHeader (_http_outgoing.js:564:3)
      at /ipxissue/node_modules/ipx/dist/index.js:508:13

Likely related to /issues/375 (and unjs/ipx/issues/42)

@pi0
Copy link
Member

pi0 commented Jun 22, 2022

Should be solved in latest IPX release. Thanks for reporting.

@pi0 pi0 closed this as completed Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants