summaryrefslogtreecommitdiff
path: root/ot_http.c
diff options
context:
space:
mode:
authorerdgeist <>2010-04-21 14:43:36 +0000
committererdgeist <>2010-04-21 14:43:36 +0000
commit3baa1abc5697aa1becbf39a27f3de690da3acaea (patch)
treebfdabfce62179953d95b532025df3796be35d783 /ot_http.c
parent66cda4bc7559ef0930b8dd0d36ac64c274defbd6 (diff)
Fix white spaces
Diffstat (limited to 'ot_http.c')
-rw-r--r--ot_http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ot_http.c b/ot_http.c
index e364809..c544468 100644
--- a/ot_http.c
+++ b/ot_http.c
@@ -46,7 +46,7 @@ static void http_senddata( const int64 sock, struct ot_workstruct *ws ) {
46 ssize_t written_size; 46 ssize_t written_size;
47 47
48 if( !cookie ) { io_close(sock); return; } 48 if( !cookie ) { io_close(sock); return; }
49 49
50 /* whoever sends data is not interested in its input-array */ 50 /* whoever sends data is not interested in its input-array */
51 if( ws->keep_alive && ws->header_size != ws->request_size ) { 51 if( ws->keep_alive && ws->header_size != ws->request_size ) {
52 size_t rest = ws->request_size - ws->header_size; 52 size_t rest = ws->request_size - ws->header_size;
@@ -55,7 +55,7 @@ static void http_senddata( const int64 sock, struct ot_workstruct *ws ) {
55 array_truncate( &cookie->request, 1, rest ); 55 array_truncate( &cookie->request, 1, rest );
56 } else 56 } else
57 array_catb(&cookie->request, ws->request + ws->header_size, rest ); 57 array_catb(&cookie->request, ws->request + ws->header_size, rest );
58 } else 58 } else
59 array_reset( &cookie->request ); 59 array_reset( &cookie->request );
60 60
61 written_size = write( sock, ws->reply, ws->reply_size ); 61 written_size = write( sock, ws->reply, ws->reply_size );