Skip to content

net/http: MaxBytesReader's "request body too large" error is unexported #8479

Closed
@gopherbot

Description

@gopherbot

by staley.dylan:

I recently ran into an issue where my program was printing "http: request body too
large". I found where that error is created in the package source
(http://golang.org/src/pkg/net/http/request.go#L656), but it seems that the error isn't
exported out of the package, so my application can't properly detect this specific error.

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