Skip to content

Commit b1cad73

Browse files
authored
Merge pull request #22 from Sorunome/master
remove everything after semicolumn in mime-type
2 parents 394462f + 0ecffba commit b1cad73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/base.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ class Base {
854854
return download.getBufferAndType(avatarUrl).then(({buffer, type})=> {
855855
let opts = {
856856
name: path.basename(avatarUrl),
857-
type,
857+
type.split(';')[0],
858858
rawResponse: false
859859
};
860860
return client.uploadContent(buffer, opts);

0 commit comments

Comments
 (0)