Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMazen Faraj2005-12-15 12:54:21 -0500
committerMazen Faraj2005-12-15 12:54:21 -0500
commit47e25fa925af5f57989b1814fae392d597f0bee4 (patch)
tree28aa17fdca28a31c3287c126622ea9304f496915 /org.eclipse.help
parente3d7f402def9566ad1a5d859270f7bb6702e221f (diff)
downloadeclipse.platform.ua-47e25fa925af5f57989b1814fae392d597f0bee4.tar.gz
eclipse.platform.ua-47e25fa925af5f57989b1814fae392d597f0bee4.tar.xz
eclipse.platform.ua-47e25fa925af5f57989b1814fae392d597f0bee4.zip
bug 121039
Diffstat (limited to 'org.eclipse.help')
-rw-r--r--org.eclipse.help/src/org/eclipse/help/internal/protocols/HelpURLConnection.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.help/src/org/eclipse/help/internal/protocols/HelpURLConnection.java b/org.eclipse.help/src/org/eclipse/help/internal/protocols/HelpURLConnection.java
index 77344da41..8e88984a9 100644
--- a/org.eclipse.help/src/org/eclipse/help/internal/protocols/HelpURLConnection.java
+++ b/org.eclipse.help/src/org/eclipse/help/internal/protocols/HelpURLConnection.java
@@ -160,7 +160,8 @@ public class HelpURLConnection extends URLConnection {
public String getContentType() {
// Check if the file is hypertext or plain text
String file = pluginAndFile.toLowerCase(Locale.US);
- if (file.endsWith(".html") || file.endsWith(".htm")) //$NON-NLS-1$ //$NON-NLS-2$
+ if (file.endsWith(".html") || file.endsWith(".htm") //$NON-NLS-1$ //$NON-NLS-2$
+ || file.endsWith(".xhtml")) //$NON-NLS-1$
return "text/html"; //$NON-NLS-1$
else if (file.endsWith(".css")) //$NON-NLS-1$
return "text/css"; //$NON-NLS-1$

Back to the top