-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
fix image api missing filename bug #1017
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
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1017 +/- ##
==========================================
- Coverage 85.77% 85.43% -0.35%
==========================================
Files 43 43
Lines 2291 2313 +22
==========================================
+ Hits 1965 1976 +11
- Misses 304 315 +11
Partials 22 22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
return file{rdr, filename, contentType} | ||
} | ||
|
||
type file struct { |
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.
I'm not sure if the file struct should be put here
filename = f.Name() | ||
} | ||
} | ||
var contentType string |
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.
I'm not sure if the default Content-Type is set to application/octet-stream here
Fixed the bug that the filename was missing due to the last PR.(#994)
I've added a file struct to override what was going on before the last PR.(#994)
I'm so sorry because of my negligence that caused this issue.
Here are two related issues I've seen:(#1012), (#1010)