From 2b233cdf690bf241b1b6ba62e285c9647d07e979 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 28 Nov 2014 14:28:17 +0100 Subject: [PATCH] miniupnpc-libevent.c: add double quotes (") around SOAPAction --- miniupnpc-libevent/miniupnpc-libevent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miniupnpc-libevent/miniupnpc-libevent.c b/miniupnpc-libevent/miniupnpc-libevent.c index 2ab0e06..4ec3467 100644 --- a/miniupnpc-libevent/miniupnpc-libevent.c +++ b/miniupnpc-libevent/miniupnpc-libevent.c @@ -1,4 +1,4 @@ -/* $Id: miniupnpc-libevent.c,v 1.16 2014/11/25 22:49:18 nanard Exp $ */ +/* $Id: miniupnpc-libevent.c,v 1.17 2014/11/28 13:21:25 nanard Exp $ */ /* miniupnpc-libevent * Copyright (c) 2008-2014, Thomas BERNARD * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ @@ -523,7 +523,7 @@ static int upnpc_send_soap_request(upnpc_t * p, const char * url, snprintf(portstr, sizeof(portstr), ":%hu", port); else portstr[0] = '\0'; - snprintf(action, sizeof(action), "%s#%s", service, method); + snprintf(action, sizeof(action), "\"%s#%s\"", service, method); if(p->soap_conn == NULL) { p->soap_conn = evhttp_connection_base_new(p->base, NULL, hostname, port); }