Skip to content
This repository was archived by the owner on Jul 12, 2023. It is now read-only.
This repository was archived by the owner on Jul 12, 2023. It is now read-only.

Does not work with proxy due to missing Content-Length #27

@mcm-ham

Description

@mcm-ham

I'm finding requests inside batch are missing request body once forwarded by reverse proxies such as ProxyKit or YARP are missing. Looking into the source code I discovered this was due to missing ContentLength:
https://github.com/ProxyKit/ProxyKit/blob/master/src/ProxyKit/HttpContextExtensions.cs#L59

After I manually added ContentLength header it now correctly works. However, I didn't see this being needed in the examples provided here:
https://devblogs.microsoft.com/aspnet/introducing-batch-support-in-web-api-and-web-api-odata/

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions