"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/http/processor.c" between
monit-5.27.2.tar.gz and monit-5.28.0.tar.gz

About: Monit is a utility for managing and monitoring processes, files, directories and filesystems (with automatic error recovery).

processor.c  (monit-5.27.2):processor.c  (monit-5.28.0)
skipping to change at line 500 skipping to change at line 500
get_server(server, STRLEN); get_server(server, STRLEN);
Socket_print(S, "%s %d %s\r\n", res->protocol, res->status, res- >status_msg); Socket_print(S, "%s %d %s\r\n", res->protocol, res->status, res- >status_msg);
Socket_print(S, "Date: %s\r\n", date); Socket_print(S, "Date: %s\r\n", date);
Socket_print(S, "Server: %s\r\n", server); Socket_print(S, "Server: %s\r\n", server);
Socket_print(S, "Content-Length: %zu\r\n", bodyLength); Socket_print(S, "Content-Length: %zu\r\n", bodyLength);
Socket_print(S, "Connection: close\r\n"); Socket_print(S, "Connection: close\r\n");
if (headers) if (headers)
Socket_print(S, "%s", headers); Socket_print(S, "%s", headers);
Socket_print(S, "\r\n"); Socket_print(S, "\r\n");
if (bodyLength) if (bodyLength)
Socket_write(S, (unsigned char *)body, bodyLength); if(Socket_write(S, (unsigned char *)body, bodyLength) <
0)
Log_error("Http: Cannot send the response -- %s\
n", STRERROR);
FREE(headers); FREE(headers);
} }
} }
/* --------------------------------------------------------------- Factories */ /* --------------------------------------------------------------- Factories */
/** /**
* Returns a new HttpRequest object wrapping the client request * Returns a new HttpRequest object wrapping the client request
*/ */
static HttpRequest create_HttpRequest(Socket_T S) { static HttpRequest create_HttpRequest(Socket_T S) {
 End of changes. 1 change blocks. 
1 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)