changeset 26544:430298a61512

Reformat a printf so the HTTP headers are easier to read
author Paul Aurich <paul@darkrain42.org>
date Sat, 11 Apr 2009 21:52:58 +0000
parents d68b338d9eed
children 98d8c336234d
files libpurple/protocols/yahoo/yahoo_filexfer.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo_filexfer.c	Sat Apr 11 17:41:18 2009 +0000
+++ b/libpurple/protocols/yahoo/yahoo_filexfer.c	Sat Apr 11 21:52:58 2009 +0000
@@ -1385,7 +1385,13 @@
 	strcpy(time_str + strlen(time_str) - 1, "\0");
 
 	if (xd->txbuflen == 0)	{
-		xd->txbuf = g_strdup_printf("HTTP/1.0 200 OK\r\nDate: %s GMT\r\nServer: Y!/1.0\r\nMIME-version: 1.0\r\nLast-modified: %s GMT\r\nContent-length: %d\r\n\r\n", time_str, time_str, xfer->size);
+		xd->txbuf = g_strdup_printf("HTTP/1.0 200 OK\r\n"
+		                            "Date: %s GMT\r\n"
+		                            "Server: Y!/1.0\r\n"
+		                            "MIME-version: 1.0\r\n"
+		                            "Last-modified: %s GMT\r\n"
+		                            "Content-length: %d\r\n\r\n",
+		                            time_str, time_str, xfer->size);
 		xd->txbuflen = strlen(xd->txbuf);
 		xd->txbuf_written = 0;
 	}