You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2025/05/07 14:14:39 UTC
(tomcat) branch 11.0.x updated: Fix typo
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new 3e0bc52f3c Fix typo
3e0bc52f3c is described below
commit 3e0bc52f3c1d41629056ad71ea21d84254872985
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed May 7 15:14:15 2025 +0100
Fix typo
---
java/org/apache/catalina/webresources/AbstractResource.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/java/org/apache/catalina/webresources/AbstractResource.java b/java/org/apache/catalina/webresources/AbstractResource.java
index 62c4eeb614..83109274ad 100644
--- a/java/org/apache/catalina/webresources/AbstractResource.java
+++ b/java/org/apache/catalina/webresources/AbstractResource.java
@@ -130,9 +130,9 @@ public abstract class AbstractResource implements WebResource {
public final String getMimeType() {
if (mimeType == null) {
String name = getName();
- int extenstionStart = name.lastIndexOf('.');
- if (extenstionStart > -1) {
- String extension = name.substring(extenstionStart + 1);
+ int extensionStart = name.lastIndexOf('.');
+ if (extensionStart > -1) {
+ String extension = name.substring(extensionStart + 1);
mimeType = root.getContext().findMimeMapping(extension);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org