Bug 159366 HttpService & Port 0, doesn't update service property correctly
diff --git a/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/HttpListener.java b/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/HttpListener.java
index 6f8349d..954e341 100644
--- a/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/HttpListener.java
+++ b/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/HttpListener.java
@@ -117,6 +117,7 @@
 				}
 			}
 
+			properties.put(HttpConfiguration.keyHttpPort, new Integer(serverSocket.getLocalPort()));
 			if (service == null) {
 				service = http.context.registerService(httpsvcClass, this, properties);
 			} else {