serve_file() is broken due to evbuffer_read()
If we ever need to serve files for a web interface or otherwise, serve_file() will need to be fixed to not use evbuffer_read().
This commit is contained in:
parent
6e5f49bdf9
commit
848dd41993
|
@ -760,6 +760,9 @@ serve_file(struct evhttp_request *req, char *uri)
|
|||
return;
|
||||
}
|
||||
|
||||
/* FIXME: this is broken, if we ever need to serve files here,
|
||||
* this must be fixed.
|
||||
*/
|
||||
ret = evbuffer_read(evbuf, fd, sb.st_size);
|
||||
close(fd);
|
||||
if (ret < 0)
|
||||
|
|
Loading…
Reference in New Issue