X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=http_send.c;h=429b4662a70497d522fd68a0e3467941e7edc959;hb=d1b7b2dbccd20ef72c54b7e06117ef1f92500c04;hp=90e3ee57d1b6d40152ef6fc4026331766e2524c5;hpb=9190cb37a393b6f245a2bc17f9aeb9eb02a8e629;p=paraslash.git diff --git a/http_send.c b/http_send.c index 90e3ee57..429b4662 100644 --- a/http_send.c +++ b/http_send.c @@ -170,7 +170,7 @@ static void http_post_monitor(__a_unused struct sched *s) case HTTP_STREAMING: /* nothing to do */ break; case HTTP_CONNECTED: /* need to recv get request */ - ret = read_pattern(sc->fd, HTTP_GET_MSG, MAXLINE); + ret = read_and_compare(sc->fd, HTTP_GET_MSG); if (ret < 0) phsd->status = HTTP_INVALID_GET_REQUEST; else if (ret > 0) {