Skip to content

Check for MaxBytesError instead of a string comparison #6700

@francislavoie

Description

@francislavoie

We should stop comparing against "http: request body too large" when detecting a ReadCloser error:

if err != nil && err.Error() == "http: request body too large" {

Go stdlib now has a MaxBytesError type we can check for.

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