miniupnpc: Make User-Agent compliant.

This commit is contained in:
Thomas Bernard 2023-06-16 00:38:07 +02:00
parent 16eafed1c8
commit b557fdf4db
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF
3 changed files with 10 additions and 7 deletions

View File

@ -1,6 +1,9 @@
$Id: Changelog.txt,v 1.257 2023/06/11 23:25:45 nanard Exp $ $Id: Changelog.txt,v 1.259 2023/06/15 22:42:36 nanard Exp $
miniUPnP client Changelog. miniUPnP client Changelog.
2023/06/15:
Make User-Agent compliant.
VERSION 2.2.5 : released 2023/06/12 VERSION 2.2.5 : released 2023/06/12
2023/06/05: 2023/06/05:

View File

@ -1,8 +1,8 @@
/* $Id: minisoap.c,v 1.30 2020/11/09 19:27:42 nanard Exp $ */ /* $Id: minisoap.c,v 1.31 2023/06/15 21:47:50 nanard Exp $ */
/* vim: tabstop=4 shiftwidth=4 noexpandtab /* vim: tabstop=4 shiftwidth=4 noexpandtab
* Project : miniupnp * Project : miniupnp
* Author : Thomas Bernard * Author : Thomas Bernard
* Copyright (c) 2005-2020 Thomas Bernard * Copyright (c) 2005-2023 Thomas Bernard
* This software is subject to the conditions detailed in the * This software is subject to the conditions detailed in the
* LICENCE file provided in this distribution. * LICENCE file provided in this distribution.
* *
@ -90,7 +90,7 @@ int soapPostSubmit(SOCKET fd,
headerssize = snprintf(headerbuf, sizeof(headerbuf), headerssize = snprintf(headerbuf, sizeof(headerbuf),
"POST %s HTTP/%s\r\n" "POST %s HTTP/%s\r\n"
"Host: %s%s\r\n" "Host: %s%s\r\n"
"User-Agent: " OS_STRING ", " UPNP_VERSION_STRING ", MiniUPnPc/" MINIUPNPC_VERSION_STRING "\r\n" "User-Agent: " OS_STRING " " UPNP_VERSION_STRING " MiniUPnPc/" MINIUPNPC_VERSION_STRING "\r\n"
"Content-Length: %d\r\n" "Content-Length: %d\r\n"
"Content-Type: text/xml\r\n" "Content-Type: text/xml\r\n"
"SOAPAction: \"%s\"\r\n" "SOAPAction: \"%s\"\r\n"

View File

@ -1,8 +1,8 @@
/* $Id: miniwget.c,v 1.82 2020/05/29 21:14:22 nanard Exp $ */ /* $Id: miniwget.c,v 1.85 2023/06/15 21:47:50 nanard Exp $ */
/* Project : miniupnp /* Project : miniupnp
* Website : http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/ * Website : http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
* Author : Thomas Bernard * Author : Thomas Bernard
* Copyright (c) 2005-2020 Thomas Bernard * Copyright (c) 2005-2023 Thomas Bernard
* This software is subject to the conditions detailed in the * This software is subject to the conditions detailed in the
* LICENCE file provided in this distribution. */ * LICENCE file provided in this distribution. */
@ -444,7 +444,7 @@ miniwget3(const char * host,
"GET %s HTTP/%s\r\n" "GET %s HTTP/%s\r\n"
"Host: %s:%d\r\n" "Host: %s:%d\r\n"
"Connection: Close\r\n" "Connection: Close\r\n"
"User-Agent: " OS_STRING ", " UPNP_VERSION_STRING ", MiniUPnPc/" MINIUPNPC_VERSION_STRING "\r\n" "User-Agent: " OS_STRING " " UPNP_VERSION_STRING " MiniUPnPc/" MINIUPNPC_VERSION_STRING "\r\n"
"\r\n", "\r\n",
path, httpversion, host, port); path, httpversion, host, port);