diff --git a/std/http/file_server.ts b/std/http/file_server.ts index 79f3e50812..468e8a60e4 100755 --- a/std/http/file_server.ts +++ b/std/http/file_server.ts @@ -47,10 +47,10 @@ const MEDIA_TYPES: Record = { ".json": "application/json", ".map": "application/json", ".txt": "text/plain", - ".ts": "application/typescript", - ".tsx": "application/typescript", + ".ts": "text/typescript", + ".tsx": "text/tsx", ".js": "application/javascript", - ".jsx": "application/jsx", + ".jsx": "text/jsx", ".gz": "application/gzip", };