-
Notifications
You must be signed in to change notification settings - Fork 25
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
base: master
Are you sure you want to change the base?
Conversation
if extension == "": | ||
return RestApiResponse.error(Http422, "The MIME type is not valid.") | ||
return RestApiResponse.error( | ||
Http422, "The MIME type '" & mimetypeVal & "' is not valid." |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I had to debug a download failure and ended up adding slightly better error feedback. Also noted some dead code, which I have removed.