Skip to content

Commit 3ce5c54

Browse files
authored
Migrate from EE 8 to EE 9 in SCMFile (jenkinsci#309)
1 parent 72ff4b2 commit 3ce5c54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/jenkins/scm/api/SCMFile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ private static String getMimeType(@NonNull String fileName) {
418418

419419
WebApp webApp = WebApp.getCurrent();
420420

421-
String mimeType = webApp.context.getMimeType(fileName);
421+
String mimeType = webApp.getServletContext().getMimeType(fileName);
422422
if (mimeType == null) {
423423
mimeType = "application/octet-stream";
424424
}

0 commit comments

Comments
 (0)