Skip to content

Commit 1121fb4

Browse files
committed
add(web): support mp4,webm,weba,webp mime types
1 parent 21ecfd2 commit 1121fb4

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

MIG/Gateways/WebServiceGateway.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,10 @@ private void Worker(object state)
433433
{
434434
response.ContentType = "application/zip";
435435
}
436+
else if (url.ToLower().EndsWith(".webp"))
437+
{
438+
response.ContentType = "image/webp";
439+
}
436440
else if (url.ToLower().EndsWith(".png"))
437441
{
438442
response.ContentType = "image/png";
@@ -457,6 +461,18 @@ private void Worker(object state)
457461
{
458462
response.ContentType = "audio/x-wav";
459463
}
464+
else if (url.ToLower().EndsWith(".weba"))
465+
{
466+
response.ContentType = "audio/webm";
467+
}
468+
else if (url.ToLower().EndsWith(".webm"))
469+
{
470+
response.ContentType = "video/webm";
471+
}
472+
else if (url.ToLower().EndsWith(".mp4"))
473+
{
474+
response.ContentType = "video/mp4";
475+
}
460476
else if (url.ToLower().EndsWith(".m3u8"))
461477
{
462478
response.ContentType = "application/x-mpegURL";

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ artifacts:
1818
deploy:
1919
- provider: GitHub
2020
auth_token:
21-
secure: EV/QbdjryLysyefCkxLXLBr4icYTdmOi+6wtgrB2mLfrP0qTQPiwj7w4L2i5fi7q
21+
secure: QJoBiqbeg1z+3WRoH1IdXRsnXtvwS95U2Z89JH9DrnEhJYMYbRpKjUmGEbOU3OnDLFz8gKqzP8y7KpL226lCb/Y+W6CTt7EGouenMIKnzZBllZVvSG73LdhHgD8RbxIy
2222
draft: false
2323
prerelease: false
2424
on:

0 commit comments

Comments
 (0)