X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=http_send.c;h=8ebbbc9c8a676d52f7b78348af10333ed6ec9dea;hp=3de313ce96ca4478ac2c05d186c6788f58eec590;hb=98e61f7563ae284e058ce6251b89626ab6254ff7;hpb=bc8187d6a4ca3191b3c54226ba54e4f0c4cf4e6e diff --git a/http_send.c b/http_send.c index 3de313ce..8ebbbc9c 100644 --- a/http_send.c +++ b/http_send.c @@ -74,7 +74,8 @@ static void http_shutdown_clients(void) } static void http_send(long unsigned current_chunk, - __a_unused long unsigned chunks_sent, const char *buf, size_t len) + __a_unused long unsigned chunks_sent, const char *buf, size_t len, + const char *header_buf, size_t header_len) { struct sender_client *sc, *tmp; @@ -82,7 +83,8 @@ static void http_send(long unsigned current_chunk, struct private_http_sender_data *phsd = sc->private_data; if (phsd->status != HTTP_STREAMING) continue; - send_chunk(sc, hss, 0, current_chunk, buf, len); + send_chunk(sc, hss, 0, current_chunk, buf, len, header_buf, + header_len); } } @@ -105,8 +107,7 @@ static void http_post_select(fd_set *rfds, __a_unused fd_set *wfds) phsd->status = HTTP_INVALID_GET_REQUEST; } else { phsd->status = HTTP_GOT_GET_REQUEST; - PARA_INFO_LOG("%s", - "received get request\n"); + PARA_INFO_LOG("received get request\n"); } } break;