[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r28916 - libmicrohttpd/src/microhttpd
From: |
gnunet |
Subject: |
[GNUnet-SVN] r28916 - libmicrohttpd/src/microhttpd |
Date: |
Fri, 30 Aug 2013 14:49:45 +0200 |
Author: grothoff
Date: 2013-08-30 14:49:45 +0200 (Fri, 30 Aug 2013)
New Revision: 28916
Modified:
libmicrohttpd/src/microhttpd/connection.c
Log:
-immediately handle request even if it is only terminated with \n instead of
\r\n
Modified: libmicrohttpd/src/microhttpd/connection.c
===================================================================
--- libmicrohttpd/src/microhttpd/connection.c 2013-08-30 11:54:56 UTC (rev
28915)
+++ libmicrohttpd/src/microhttpd/connection.c 2013-08-30 12:49:45 UTC (rev
28916)
@@ -984,7 +984,8 @@
while ((pos < connection->read_buffer_offset - 1) &&
('\r' != rbuf[pos]) && ('\n' != rbuf[pos]))
pos++;
- if (pos == connection->read_buffer_offset - 1)
+ if ( (pos == connection->read_buffer_offset - 1) &&
+ ('\n' != rbuf[pos]) )
{
/* not found, consider growing... */
if ( (connection->read_buffer_offset == connection->read_buffer_size) &&
@@ -1247,11 +1248,10 @@
http_version[0] = '\0';
http_version++;
}
- if (connection->daemon->uri_log_callback != NULL)
+ if (NULL != connection->daemon->uri_log_callback)
connection->client_context
- =
- connection->daemon->uri_log_callback (connection->daemon->
- uri_log_callback_cls, uri);
+ = connection->daemon->uri_log_callback
(connection->daemon->uri_log_callback_cls,
+ uri);
args = strchr (uri, '?');
if (NULL != args)
{
@@ -2118,7 +2118,7 @@
continue;
case MHD_CONNECTION_URL_RECEIVED:
line = get_next_header_line (connection);
- if (line == NULL)
+ if (NULL == line)
{
if (MHD_CONNECTION_URL_RECEIVED != connection->state)
continue;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r28916 - libmicrohttpd/src/microhttpd,
gnunet <=