#include "fd.h"
#include "chunk_queue.h"
-/** Message sent to clients that do not send a valid get request. */
-#define HTTP_ERR_MSG "HTTP/1.0 400 Bad Request\n"
-
/** The possible states of a client from the server's POV. */
enum http_client_status {
/** We accepted the connection on the tcp socket. */
static int http_send_err_msg(struct sender_client *sc)
{
PARA_NOTICE_LOG("sending bad request message to fd %d\n", sc->fd);
- return http_send_msg(sc, HTTP_ERR_MSG);
+ return http_send_msg(sc, "HTTP/1.0 400 Bad Request\n");
}
static void http_shutdown_clients(void)