Skip to content

http.MaxBytesError not propagated #800

@ItalyPaleAle

Description

@ItalyPaleAle

Describe the bug

When parsing a stream that ends with http.MaxBytesError (created with http.MaxBytesReader), sonic does not propagate it and "swallows" it instead.

To Reproduce

  1. Parse a HTTP body passed through http.MaxBytesReader
  2. If the body is too large, there's an error

Expected behavior

The error should be http.MaxBytesError, but it's a generic one instead

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