Skip to content

fcgi.writePairs() writes key length twice rather than key length then value length #2469

@trotterdylan

Description

@trotterdylan
The fcgi package has an error in the writePairs() function. On lines 174-175 It writes
the key length twice instead of writing the key length and then the value length:

  n := encodeSize(b, uint32(len(k)))
  n += encodeSize(b[n:], uint32(len(k)))

Should read:

  n := encodeSize(b, uint32(len(k)))
  n += encodeSize(b[n:], uint32(len(v)))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions