Reformat a printf so the HTTP headers are easier to read

Sat, 11 Apr 2009 21:52:58 +0000

author
Paul Aurich <darkrain42@pidgin.im>
date
Sat, 11 Apr 2009 21:52:58 +0000
changeset 26769
7dad743942e2
parent 26768
849838340219
child 26770
19f31dff1150

Reformat a printf so the HTTP headers are easier to read

libpurple/protocols/yahoo/yahoo_filexfer.c file | annotate | diff | comparison | revisions
--- 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;
 	}

mercurial