diff --git a/libsoup/soup-uri.c b/libsoup/soup-uri.c
index 723e361..61f9151 100644
--- a/libsoup/soup-uri.c
+++ b/libsoup/soup-uri.c
@@ -527,7 +527,7 @@ soup_uri_to_string (SoupURI *uri, gboolean just_path_and_query)
 			g_string_append_c (str, ']');
 		} else
 			append_uri_encoded (str, uri->host, ":/");
-		if (uri->port && uri->port != soup_scheme_default_port (uri->scheme))
+		if (uri->port)
 			g_string_append_printf (str, ":%u", uri->port);
 		if (!uri->path && (uri->query || uri->fragment))
 			g_string_append_c (str, '/');
