Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

HEAD requests content-length not valid #1121

Open
@bitterpanda63

Description

@bitterpanda63

Checks

Describe the bug (be clear and concise)

content-length is not passed along for HEAD requests (content-length is 0)

Step-by-step reproduction instructions

1. Create app with http-proxy-middleware, and forward it to an app that supports HEAD requests2. Make a HEAD request through the proxy and without the proxy and compare the content-length response header. The content-length response headerfor the request through the proxy is 0

Expected behavior (be clear and concise)

The content-length header should reflect the content-length passed along by the HEAD response from the server you are proxying to

How is http-proxy-middleware used in your project?

used to setup a proxy

What http-proxy-middleware configuration are you using?

irrelevant

What OS/version and node/version are you seeing the problem?

Fedora Linux 40 (Toolbx Container Image) x86_64Node: 18.0.0 -~/.nvm/versions/node/v18.0.0/bin/nodenpm: 9.9.3 -~/.nvm/versions/node/v18.0.0/bin/npm

Additional context (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp