Commit 6905a9a0 authored by Sergey Lyubka's avatar Sergey Lyubka

Formatting changes

parent f56dcb89
...@@ -1424,8 +1424,8 @@ int mg_read(struct mg_connection *conn, void *buf, size_t len) { ...@@ -1424,8 +1424,8 @@ int mg_read(struct mg_connection *conn, void *buf, size_t len) {
} }
int mg_write(struct mg_connection *conn, const void *buf, size_t len) { int mg_write(struct mg_connection *conn, const void *buf, size_t len) {
return (int) push(NULL, conn->client.sock, conn->ssl, return (int) push(NULL, conn->client.sock, conn->ssl, (const char *) buf,
(const char *) buf, (int64_t) len); (int64_t) len);
} }
int mg_printf(struct mg_connection *conn, const char *fmt, ...) { int mg_printf(struct mg_connection *conn, const char *fmt, ...) {
...@@ -3911,7 +3911,7 @@ static void handle_proxy_request(struct mg_connection *conn) { ...@@ -3911,7 +3911,7 @@ static void handle_proxy_request(struct mg_connection *conn) {
static int is_valid_uri(const char *uri) { static int is_valid_uri(const char *uri) {
// Conform to http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1.2 // Conform to http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1.2
// URI can be an asterisk (*) or should start with slash. // URI can be an asterisk (*) or should start with slash.
return (uri[0] == '/' || (uri[0] == '*' && uri[1] == '\0')); return uri[0] == '/' || (uri[0] == '*' && uri[1] == '\0');
} }
static void process_new_connection(struct mg_connection *conn) { static void process_new_connection(struct mg_connection *conn) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment