Browse Source

do not reflect "Expect:" header in error response

See #759
bel2125 6 năm trước cách đây
mục cha
commit
1c727d700d
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      src/civetweb.c

+ 1 - 2
src/civetweb.c

@@ -10562,8 +10562,7 @@ forward_body_data(struct mg_connection *conn, FILE *fp, SOCKET sock, SSL *ssl)
 		 */
 		mg_send_http_error(conn,
 		                   417,
-		                   "Error: Can not fulfill expectation %s",
-		                   expect);
+		                   "Error: Can not fulfill expectation");
 	} else {
 		if (expect != NULL) {
 			(void)mg_printf(conn, "%s", "HTTP/1.1 100 Continue\r\n\r\n");