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

Minor improvements to download API #1092

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gmega
Copy link
Member

@gmega gmega commented Jan 30, 2025

I had to debug a download failure and ended up adding slightly better error feedback. Also noted some dead code, which I have removed.

@gmega gmega requested review from dryajov and 2-towns January 30, 2025 22:32
if extension == "":
return RestApiResponse.error(Http422, "The MIME type is not valid.")
return RestApiResponse.error(
Http422, "The MIME type '" & mimetypeVal & "' is not valid."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it is better. You just need to update the test case "upload fails if content type is invalid" to include the mimetype value.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, just noticed this is failing now. Thanks

Copy link
Contributor

@2-towns 2-towns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just need to fix the integration test

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 this pull request may close these issues.

2 participants