diff options
Diffstat (limited to 'libjava/java/net/URLConnection.java')
-rw-r--r-- | libjava/java/net/URLConnection.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/java/net/URLConnection.java b/libjava/java/net/URLConnection.java index 4707d9c..2b383b5 100644 --- a/libjava/java/net/URLConnection.java +++ b/libjava/java/net/URLConnection.java @@ -956,7 +956,7 @@ public abstract class URLConnection ContentHandler handler; // No content type so just handle it as the default. - if (contentType == null || contentType == "") + if (contentType == null || contentType.equals("")) return null; // See if a handler has been cached for this content type. |