From fe89565ba923f9ef70b6715196bcbf8b34f5f260 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 29 Jul 2010 15:39:01 +0000 Subject: --- src/transport/plugin_transport_http.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/transport/plugin_transport_http.c') diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index 99b6053cf..9893cd27c 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c @@ -48,6 +48,8 @@ #define INBOUND GNUNET_NO #define OUTBOUND GNUNET_YES +#define PROTOCOL_PREFIX "http" + /** * Text of the response sent back after the last bytes of a PUT * request have been received (just to formally obey the HTTP @@ -418,7 +420,7 @@ static char * create_url(void * cls, const void * addr, size_t addrlen, size_t i GNUNET_assert ((addr!=NULL) && (addrlen != 0)); GNUNET_asprintf(&url, - "http://%s/%s;%u", + "%s://%s/%s;%u", PROTOCOL_PREFIX, http_plugin_address_to_string(NULL, addr, addrlen), (char *) (&plugin->my_ascii_hash_ident),id); @@ -2116,7 +2118,7 @@ http_plugin_address_pretty_printer (void *cls, asc (asc_cls, NULL); return; } - res = GNUNET_asprintf(&ret,"http://%s:%u/",address,port); + res = GNUNET_asprintf(&ret,"%s://%s:%u/", PROTOCOL_PREFIX, address, port); GNUNET_free (address); GNUNET_assert(res != 0); asc (asc_cls, ret); -- cgit v1.2.3