Fossil SCM
Use the same "User-Agent" string everywhere
Commit
a7a7df7072e1248f133f903c00eb971003db153a
Parent
3a3343566663410…
1 file changed
+1
-1
+1
-1
| --- src/http_ssl.c | ||
| +++ src/http_ssl.c | ||
| @@ -188,11 +188,11 @@ | ||
| 188 | 188 | blob_appendf(&snd, "Host: %s:%d\r\n", pUrlData->hostname, pUrlData->proxyOrigPort); |
| 189 | 189 | if( pUrlData->proxyAuth ){ |
| 190 | 190 | blob_appendf(&snd, "Proxy-Authorization: %s\r\n", pUrlData->proxyAuth); |
| 191 | 191 | } |
| 192 | 192 | blob_append(&snd, "Proxy-Connection: keep-alive\r\n", -1); |
| 193 | - blob_append(&snd, "User-Agent: Fossil/" RELEASE_VERSION "\r\n", -1); | |
| 193 | + blob_appendf(&snd, "User-Agent: %s\r\n", get_user_agent()); | |
| 194 | 194 | blob_append(&snd, "\r\n", 2); |
| 195 | 195 | BIO_write(bio, blob_buffer(&snd), blob_size(&snd)); |
| 196 | 196 | blob_reset(&snd); |
| 197 | 197 | |
| 198 | 198 | /* Wait for end of reply */ |
| 199 | 199 |
| --- src/http_ssl.c | |
| +++ src/http_ssl.c | |
| @@ -188,11 +188,11 @@ | |
| 188 | blob_appendf(&snd, "Host: %s:%d\r\n", pUrlData->hostname, pUrlData->proxyOrigPort); |
| 189 | if( pUrlData->proxyAuth ){ |
| 190 | blob_appendf(&snd, "Proxy-Authorization: %s\r\n", pUrlData->proxyAuth); |
| 191 | } |
| 192 | blob_append(&snd, "Proxy-Connection: keep-alive\r\n", -1); |
| 193 | blob_append(&snd, "User-Agent: Fossil/" RELEASE_VERSION "\r\n", -1); |
| 194 | blob_append(&snd, "\r\n", 2); |
| 195 | BIO_write(bio, blob_buffer(&snd), blob_size(&snd)); |
| 196 | blob_reset(&snd); |
| 197 | |
| 198 | /* Wait for end of reply */ |
| 199 |
| --- src/http_ssl.c | |
| +++ src/http_ssl.c | |
| @@ -188,11 +188,11 @@ | |
| 188 | blob_appendf(&snd, "Host: %s:%d\r\n", pUrlData->hostname, pUrlData->proxyOrigPort); |
| 189 | if( pUrlData->proxyAuth ){ |
| 190 | blob_appendf(&snd, "Proxy-Authorization: %s\r\n", pUrlData->proxyAuth); |
| 191 | } |
| 192 | blob_append(&snd, "Proxy-Connection: keep-alive\r\n", -1); |
| 193 | blob_appendf(&snd, "User-Agent: %s\r\n", get_user_agent()); |
| 194 | blob_append(&snd, "\r\n", 2); |
| 195 | BIO_write(bio, blob_buffer(&snd), blob_size(&snd)); |
| 196 | blob_reset(&snd); |
| 197 | |
| 198 | /* Wait for end of reply */ |
| 199 |