summaryrefslogtreecommitdiff
path: root/src/http-message.c
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@banu.com>2008-12-08 13:39:44 +0000
committerMukund Sivaraman <muks@banu.com>2008-12-08 13:39:44 +0000
commit024b317de09a7d426973ffa16e4781ec75aaef35 (patch)
tree6994f5266e93773333bfa99fa24489ac139452a3 /src/http-message.c
parent6e6f992f8cbc01ce4d6840d1a020f18846c37847 (diff)
downloadtinyproxy-024b317de09a7d426973ffa16e4781ec75aaef35.tar.gz
tinyproxy-024b317de09a7d426973ffa16e4781ec75aaef35.zip
Convert tabs to spaces
Diffstat (limited to '')
-rw-r--r--src/http-message.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/http-message.c b/src/http-message.c
index 2cd5a4d..d6ab81e 100644
--- a/src/http-message.c
+++ b/src/http-message.c
@@ -144,7 +144,7 @@ http_message_destroy (http_message_t msg)
*/
int
http_message_set_response (http_message_t msg,
- int response_code, const char *response_string)
+ int response_code, const char *response_string)
{
/* Check for valid arguments */
if (msg == NULL)
@@ -207,11 +207,11 @@ http_message_add_headers (http_message_t msg, char **headers, int num_headers)
{
new_headers = safecalloc (msg->headers.total * 2, sizeof (char *));
if (new_headers == NULL)
- return -ENOMEM;
+ return -ENOMEM;
/* Copy the array */
for (i = 0; i != msg->headers.used; ++i)
- new_headers[i] = msg->headers.strings[i];
+ new_headers[i] = msg->headers.strings[i];
/* Remove the old array and replace it with the new array */
safefree (msg->headers.strings);
@@ -251,7 +251,7 @@ http_message_send (http_message_t msg, int fd)
/* Write the response line */
write_message (fd, "HTTP/1.0 %d %s\r\n",
- msg->response.code, msg->response.string);
+ msg->response.code, msg->response.string);
/* Go through all the headers */
for (i = 0; i != msg->headers.used; ++i)
@@ -260,7 +260,7 @@ http_message_send (http_message_t msg, int fd)
/* Output the date */
global_time = time (NULL);
strftime (timebuf, sizeof (timebuf), "%a, %d %b %Y %H:%M:%S GMT",
- gmtime (&global_time));
+ gmtime (&global_time));
write_message (fd, "Date: %s\r\n", timebuf);
/* Output the content-length */