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

HTTP/2 causing 400 errors on nginx #373

Open
danog opened this issue Dec 30, 2024 · 1 comment
Open

HTTP/2 causing 400 errors on nginx #373

danog opened this issue Dec 30, 2024 · 1 comment

Comments

@danog
Copy link
Contributor

danog commented Dec 30, 2024

Usage of HTTP/2 for multiple concurrent POST requests causes 400 errors on nginx 1.18.0, switching to HTTP/1.1 fixes everything.

Reproduces even without concurrent requests with the following form body:

            $data = \file_get_contents('https://github.com/danog/rpc-db/releases/download/latest/core.json');
            $finfo = new finfo(FILEINFO_MIME_TYPE);

            $bodyNew = new Form();
            $bodyNew->addStream("0", BufferedContent::fromString($data, $finfo->buffer($data)), \basename($href));
            $newPage = new Request(Pusher::PUSH_FILE, 'POST');
            $newPage->setBody($bodyNew);
@danog
Copy link
Contributor Author

danog commented Dec 30, 2024

May or may not be caused by an issue in the recent GOAWAY fixes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant