Don't forget to send a newline when forwarding requests.
This commit is contained in:
parent
58007d7efa
commit
62b61a1b7c
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ void forward_request(connection_t *from, const char *request) {
|
||||||
char tmp[len + 1];
|
char tmp[len + 1];
|
||||||
memcpy(tmp, request, len);
|
memcpy(tmp, request, len);
|
||||||
tmp[len] = '\n';
|
tmp[len] = '\n';
|
||||||
broadcast_meta(from, tmp, len);
|
broadcast_meta(from, tmp, sizeof tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool receive_request(connection_t *c, const char *request) {
|
bool receive_request(connection_t *c, const char *request) {
|
||||||
|
|
Loading…
Reference in a new issue