Skip to content

Headers without value can't be parsed #6

Description

@henrikjonhed

A header that does not have a value, but a carriage return directly after the colon will put the parser in state http_roundtripper_error. I guess that the webserver that returns this kind of header is the one to blame, but it would be nice to be able to receive data from it anyway.
screenshot 2017-02-03 12 44 48

Activity

  1. ledbit commented on Apr 24, 2017

    @ledbit

    I actually thing that the fix should be

    -    0x87,    6, 0xC1, 0xC1,    6, 0x87, 0x87, 0xC1, /* state 6: leading whitespace before header value */
    +    0x87,    6, 0xC4,   10,    6, 0x87, 0x87, 0xC1, /* state 6: leading whitespace before header value */
    
    
  2. RalphCorderoy commented on Jun 8, 2020

    @RalphCorderoy

    Hi @ledbit, Do you mean 0x10?

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions