Ignore:
Timestamp:
Feb 25, 2010, 12:39:22 PM (12 years ago)
Author:
livings124
Message:

update miniupnp to 1.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/third-party/miniupnp/minisoap.c

    r7837 r10285  
    1 /* $Id: minisoap.c,v 1.16 2008/10/11 16:39:29 nanard Exp $ */
     1/* $Id: minisoap.c,v 1.18 2009/12/04 11:29:18 nanard Exp $ */
    22/* Project : miniupnp
    33 * Author : Thomas Bernard
    4  * Copyright (c) 2005 Thomas Bernard
     4 * Copyright (c) 2005-2009 Thomas Bernard
    55 * This software is subject to the conditions detailed in the
    66 * LICENCE file provided in this distribution.
     
    8585        /* We are not using keep-alive HTTP connections.
    8686         * HTTP/1.1 needs the header Connection: close to do that.
    87          * This is the default with HTTP/1.0 */
     87         * This is the default with HTTP/1.0
     88         * Using HTTP/1.1 means we need to support chunked transfer-encoding :
     89         * When using HTTP/1.1, the router "BiPAC 7404VNOX" always use chunked
     90         * transfer encoding. */
    8891    /* Connection: Close is normally there only in HTTP/1.1 but who knows */
    8992        portstr[0] = '\0';
     
    9194                snprintf(portstr, sizeof(portstr), ":%hu", port);
    9295        headerssize = snprintf(headerbuf, sizeof(headerbuf),
    93                        "POST %s HTTP/1.1\r\n"
    94 /*                       "POST %s HTTP/1.0\r\n"*/
     96/*                       "POST %s HTTP/1.1\r\n" */
     97                       "POST %s HTTP/1.0\r\n"
    9598                           "Host: %s%s\r\n"
    9699                                           "User-Agent: " OS_STRING ", UPnP/1.0, MiniUPnPc/" MINIUPNPC_VERSION_STRING "\r\n"
Note: See TracChangeset for help on using the changeset viewer.