Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/bytes/:n and /stream-bytes/:n endpoints don't return error on n>102400 #594

Open
stefan-guggisberg opened this issue Jan 28, 2020 · 0 comments · May be fixed by #595
Open

/bytes/:n and /stream-bytes/:n endpoints don't return error on n>102400 #594

stefan-guggisberg opened this issue Jan 28, 2020 · 0 comments · May be fixed by #595

Comments

@stefan-guggisberg
Copy link

Requesting e.g. /stream-bytes/131072 or /bytes/131072 returns status 200 but the length of the returned content is 102400 bytes.

OTOH /range/131072 returns status 404 with the following error msg: number of bytes must be in the range (0, 102400].

I believe the latter is correct. /bytes/:n and /stream-bytes/:n should behave consistently with /range/:n.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant