You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet/AwsServletContext.java
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -136,6 +136,12 @@ public String getMimeType(String s) {
136
136
if (mimeTypes == null) {
137
137
mimeTypes = newMimetypesFileTypeMap();
138
138
}
139
+
if (s.endsWith(".css")) {
140
+
return"text/css";
141
+
}
142
+
if (s.endsWith(".js")) {
143
+
return"application/javascript";
144
+
}
139
145
// TODO: The getContentType method of the MimetypesFileTypeMap returns application/octet-stream
140
146
// instead of null when the type cannot be found. We should replace with an implementation that
141
147
// loads the System mime types ($JAVA_HOME/lib/mime.types
Copy file name to clipboardExpand all lines: aws-serverless-java-container-core/src/test/java/com/amazonaws/serverless/proxy/internal/servlet/AwsServletContextTest.java
0 commit comments