mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
HTTP 431 when header size over 32KB #304
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @eduherminio on GitHub (Oct 14, 2020).
I'm getting HTTP 431 status codes when making requests to a
sheyenrath/wiremock.netimage with headers over 32KB.I assumed that the issue was KestrelServerLimits.MaxRequestHeadersTotalSize, but I'm failing to prove it.
I've created a local
wiremock.netimage withStandAlone.NETCoreAppusing a localWireMock.Netpackage where I'm settingoptions.Limits.MaxRequestHeadersTotalSize = 150_000;in both .NET Standard1.3 and .NET Standard > 1.3, but I'm still getting those 431s.Am I missing something? Any other idea of what could be causing those 431s?
@StefH commented on GitHub (Oct 14, 2020):
Hello @eduherminio, does the same issue occur when you just run the StandAlone.NETCoreApp locally, so without docker?
@eduherminio commented on GitHub (Oct 14, 2020):
Yes it does @StefH.
@StefH commented on GitHub (Oct 14, 2020):
And you use a .NET Core 3.1 ?
@eduherminio commented on GitHub (Oct 14, 2020):
My bad, I messed up the package versions. Modifying
MaxRequestHeadersTotalSizedoes seem to fix the issue. Thanks!I'll follow up with a separated issue/feature request to discuss the possibility of having it modified or allowing its modification, if that's OK with you.