Commit Diff


commit - f298c6abf2c4cec20c7d18bcb3b37266517aa1c0
commit + 81d1e61a2fe82cdd5e7c4deea7c76acff58871b7
blob - 0f5f0c9763421d041c10944ebb7e11565feedadf
blob + c1fd7f956ce311a71f711189e6af8d8cee4fc297
--- phos/phos_uri.c
+++ phos/phos_uri.c
@@ -898,6 +898,11 @@ phos_serialize_uri(const struct phos_uri *uri, char *b
 		CAT(uri->host);
 	}
 
+	if (*uri->port != '\0' && strcmp(uri->port, "1965")) {
+		CAT(":");
+		CAT(uri->port);
+	}
+
 	CAT(uri->path);
 
 	if (*uri->query != '\0') {