Skip to content

Commit cc4170d

Browse files
author
Pranav Joglekar
committed
fix python: rename midi file type to audio/midi
There was a typo in the fileType header maps causing .mid files to be set as audip/midi instead of audio/midi. This commit fixes the typo.
1 parent a9014c3 commit cc4170d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

codegens/http/lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var contentTypeHeaderMap = {
3636
'js': 'text/javascript',
3737
'json': 'application/json',
3838
'jsonld': 'application/ld+json',
39-
'mid': 'audip/midi',
39+
'mid': 'audio/midi',
4040
'midi': 'audio/midi',
4141
'mjs': 'text/javascript',
4242
'mp3': 'audio/mpeg',

codegens/python-requests/lib/util/parseBody.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var _ = require('../lodash'),
3131
'js': 'text/javascript',
3232
'json': 'application/json',
3333
'jsonld': 'application/ld+json',
34-
'mid': 'audip/midi',
34+
'mid': 'audio/midi',
3535
'midi': 'audio/midi',
3636
'mjs': 'text/javascript',
3737
'mp3': 'audio/mpeg',

0 commit comments

Comments
 (0)