Skip to content

llhttp 9.0.0 no longer accepts bare LF #236

Closed

Description

@guoye-zhang

The following response is rejected by the parser even with all lenient flags enabled:

"HTTP/1.1 200 OK\nContent-Length: 0\n\n"

Activity

  1. ShogunPanda commented on Aug 5, 2023

    @ShogunPanda
    Contributor

    I think this is an unwanted regression. I'll take a look soon.

  2. Dreamsorcerer commented on Aug 7, 2023

    @Dreamsorcerer
    Contributor

    Which option will need to be enabled after the PR lands to enable this (had a couple of users report similar issues)?
    llhttp_set_lenient_optional_lf_after_cr()?

  3. ShogunPanda commented on Aug 9, 2023

    @ShogunPanda
    Contributor

    You'll have to use llhttp_set_lenient_headers. The bug was not on the new flags but on old ones :)

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

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