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
But asyncio.Stream.read(n) is not guaranteed to read exactly n bytes, it may return a shorter read than that. In such a case only part of the body is read.
Is this expected behaviour of microdot (to not always read the whole body), or is it a bug, which can be fixed by using readexactly?
The text was updated successfully, but these errors were encountered:
The code used to read the body of the request is:
But
asyncio.Stream.read(n)
is not guaranteed to read exactlyn
bytes, it may return a shorter read than that. In such a case only part of the body is read.Is this expected behaviour of microdot (to not always read the whole body), or is it a bug, which can be fixed by using
readexactly
?The text was updated successfully, but these errors were encountered: