Skip to content

Commit

Permalink
* fundamental/static-files.rst 초벌
Browse files Browse the repository at this point in the history
  • Loading branch information
whosnail committed Aug 18, 2016
1 parent 8de5364 commit dd2ed0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aspnet/fundamentals/static-files.rst
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,12 @@ The ``FileExtensionContentTypeProvider`` class contains an internal collection t
app.UseDirectoryBrowser();
// Set up custom content types - associating file extension to MIME type
// 개발자가 정의한 콘텐트 타입 설정하기 - 파일 확장자와 MIME 타입 간의 연결
var provider = new FileExtensionContentTypeProvider();
provider.Mappings.Add(".myapp", "application/x-msdownload");
// Serve static files.
// 정적 파일 제공하기
app.UseStaticFiles(new StaticFileOptions { ContentTypeProvider = provider });
...
Expand Down

0 comments on commit dd2ed0d

Please sign in to comment.