diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-09-29 17:41:01 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-10-03 20:59:16 +0300 |
commit | 3d10823017ebb69d92c1c4b3ac5d663b257eacb4 (patch) | |
tree | e79ddec314a1e0195b7411e5847a8e677b1f4e9b /src | |
parent | 0fd78e5f406161115fa31ba91e02ac7bfbae1dfd (diff) | |
download | libmicrohttpd-3d10823017ebb69d92c1c4b3ac5d663b257eacb4.tar.gz libmicrohttpd-3d10823017ebb69d92c1c4b3ac5d663b257eacb4.zip |
process_broken_line(): avoid double error sending
Diffstat (limited to 'src')
-rw-r--r-- | src/microhttpd/connection.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 925f9df5..0e0fd5d4 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -3384,9 +3384,7 @@ process_broken_line (struct MHD_Connection *connection, | |||
3384 | strlen (connection->colon), | 3384 | strlen (connection->colon), |
3385 | kind)) | 3385 | kind)) |
3386 | { | 3386 | { |
3387 | transmit_error_response_static (connection, | 3387 | /* Error has been queued by connection_add_header() */ |
3388 | MHD_HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE, | ||
3389 | REQUEST_TOO_BIG); | ||
3390 | return MHD_NO; | 3388 | return MHD_NO; |
3391 | } | 3389 | } |
3392 | /* we still have the current line to deal with... */ | 3390 | /* we still have the current line to deal with... */ |