summaryrefslogtreecommitdiff
path: root/extra/bitlbee/msn.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/bitlbee/msn.patch')
-rw-r--r--extra/bitlbee/msn.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/extra/bitlbee/msn.patch b/extra/bitlbee/msn.patch
deleted file mode 100644
index 55e2f9b92..000000000
--- a/extra/bitlbee/msn.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-Index: devel/lib/http_client.c
-===================================================================
---- devel/lib/http_client.c (revision devel,783)
-+++ devel/lib/http_client.c (revision devel,824)
-@@ -314,5 +314,5 @@
- }
-
-- if( ( req->status_code == 301 || req->status_code == 302 ) && req->redir_ttl-- > 0 )
-+ if( ( req->status_code >= 301 && req->status_code <= 303 ) && req->redir_ttl-- > 0 )
- {
- char *loc, *new_request, *new_host;
-@@ -375,8 +375,11 @@
- going to use strcat(), whether you like it or not. :-) */
-
-- sprintf( new_request, "GET %s HTTP/1.0", url->file );
--
-- s = strstr( req->request, "\r\n" );
-- if( s == NULL )
-+ *s = 0;
-+ sprintf( new_request, "%s %s HTTP/1.0\r\nHost: %s",
-+ req->status_code == 303 || req->request[0] == 'G' ? "GET" : "POST", url->file, url->host );
-+ *s = ' ';
-+
-+ if( !( ( s = strstr( req->request, "\r\nHost: " ) ) &&
-+ ( s = strstr( s + strlen( "\r\nHost: " ), "\r\n" ) ) ) )
- {
- req->status_string = g_strdup( "Error while rebuilding request string" );