Fossil SCM

Use the same "User-Agent" string everywhere

jan.nijtmans 2014-02-06 13:59 trunk
Commit a7a7df7072e1248f133f903c00eb971003db153a
1 file changed +1 -1
+1 -1
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -188,11 +188,11 @@
188188
blob_appendf(&snd, "Host: %s:%d\r\n", pUrlData->hostname, pUrlData->proxyOrigPort);
189189
if( pUrlData->proxyAuth ){
190190
blob_appendf(&snd, "Proxy-Authorization: %s\r\n", pUrlData->proxyAuth);
191191
}
192192
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());
194194
blob_append(&snd, "\r\n", 2);
195195
BIO_write(bio, blob_buffer(&snd), blob_size(&snd));
196196
blob_reset(&snd);
197197
198198
/* Wait for end of reply */
199199
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button