changeset 13829:b6967e51f6c4

[gaim-migrate @ 16274] Adding an Accept header to requests in gaim_url_fetch_request. Was running into issues with redirects behind a caching proxy. Even if you'd explicitly specify the request, a redirect would cause Gaim to create the new request sans Accept header, and the proxy would 403 committer: Tailor Script <tailor@pidgin.im>
author Christopher O'Brien <siege@pidgin.im>
date Sun, 18 Jun 2006 02:03:08 +0000
parents 71a6a6b22149
children 0a1132e6eac4
files src/util.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/util.c	Sat Jun 17 23:22:30 2006 +0000
+++ b/src/util.c	Sun Jun 18 02:03:08 2006 +0000
@@ -3355,6 +3355,7 @@
 				"GET %s%s HTTP/%s\r\n"
 				"Connection: close\r\n"
 				"User-Agent: %s\r\n"
+				"Accept: */*\r\n"
 				"Host: %s\r\n\r\n",
 				(gfud->full ? "" : "/"),
 				(gfud->full ? gfud->url : gfud->website.page),
@@ -3364,6 +3365,7 @@
 			gfud->request = g_strdup_printf(
 				"GET %s%s HTTP/%s\r\n"
 				"Connection: close\r\n"
+				"Accept: */*\r\n"
 				"Host: %s\r\n\r\n",
 				(gfud->full ? "" : "/"),
 				(gfud->full ? gfud->url : gfud->website.page),