webclient: Remove a duplicated "Connection:" header

When making the following change, I haven't noticed that
g_httpuseragentfields contains a "Connection" header.

```
commit 092ce8144445a9b287554e59e3150bab3d67bedb
Author: YAMAMOTO Takashi <yamamoto@midokura.com>
Date:   Mon Mar 7 09:30:23 2022 +0900

    webclient: Always use "connection: close" for HTTP 1.1 for now

    * This matches the HTTP 1.0 behavior.

    * Persistent connection doesn't make much sense with the current API.
```

It seems that some servers are not happy with the duplicated header
and ignore them. (and do the default keep-alive for HTTP 1.1)
eg. Azure Blob (global)
This commit is contained in:
YAMAMOTO Takashi 2022-03-08 10:45:11 +09:00 committed by Xiang Xiao
parent 8a5dc04be2
commit f2737a208c

View File

@ -245,7 +245,6 @@ static const char g_httplocation[] = "location: ";
static const char g_httptransferencoding[] = "transfer-encoding: ";
static const char g_httpuseragentfields[] =
"Connection: close\r\n"
"User-Agent: "
CONFIG_NSH_WGET_USERAGENT
"\r\n\r\n";