Add emoji upload test
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
@@ -150,7 +150,7 @@ func (s *EmojiService) lease(ctx context.Context, subreddit, imagePath string) (
|
||||
form := url.Values{}
|
||||
form.Set("filepath", imagePath)
|
||||
form.Set("mimetype", "image/jpeg")
|
||||
if strings.HasSuffix(strings.ToLower(path), ".png") {
|
||||
if strings.HasSuffix(strings.ToLower(imagePath), ".png") {
|
||||
form.Set("mimetype", "image/png")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user