You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ioutil.ReadAll should generally not be used
in HTTP APIs, since it doesn't have a size limit. Our
current HTTP API is for internal use, but it's still a good
precautionary measure, in my opinion. We should probably just set
a limit, constant or configurable, for the maximum size
of an HTTP request body. Perhaps write our own version
of io.LimitedReader that returns a meaningful error
instead of an io.EOF.
The text was updated successfully, but these errors were encountered:
ioutil.ReadAll
should generally not be used in HTTP APIs, since it doesn't have a size limit. Our current HTTP API is for internal use, but it's still a good precautionary measure, in my opinion. We should probably just set a limit, constant or configurable, for the maximum size of an HTTP request body. Perhaps write our own version ofio.LimitedReader
that returns a meaningful error instead of anio.EOF
.The text was updated successfully, but these errors were encountered: