Remove the assertion that lines are not empty, since this could lead to
a DoS attack. Empty lines are already handled correctly by the rest of
the logic in receive_request().
bool receive_request(meshlink_handle_t *mesh, connection_t *c, const char *request) {
assert(request);
bool receive_request(meshlink_handle_t *mesh, connection_t *c, const char *request) {
assert(request);
if(c->outgoing && mesh->proxytype == PROXY_HTTP && c->allow_request == ID) {
if(!request[0] || request[0] == '\r') {
if(c->outgoing && mesh->proxytype == PROXY_HTTP && c->allow_request == ID) {
if(!request[0] || request[0] == '\r') {