Skip to content

HTTP/2 causing 400 errors on nginx #373

@danog

Description

@danog

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions