diff --git a/include/tls_config.h b/include/tls_config.h index 63a1bfbc..dd173029 100644 --- a/include/tls_config.h +++ b/include/tls_config.h @@ -31,8 +31,8 @@ #ifndef _TLS_CONFIG_H #define _TLS_CONFIG_H -#define TLS_TX_BUFFER_SIZE 8192 -#define TLS_RX_BUFFER_SIZE 8192 +#define TLS_TX_BUFFER_SIZE TLS_MAX_RECORD_LENGTH +#define TLS_RX_BUFFER_SIZE TLS_MAX_RECORD_LENGTH #define TLS_PRIVATE_CONTEXT \ char client_cert_issuer[128]; \ diff --git a/src/handler_api.c b/src/handler_api.c index 237b198f..58a27b26 100644 --- a/src/handler_api.c +++ b/src/handler_api.c @@ -832,7 +832,6 @@ error_t handleApiUploadFirmware(HttpConnection *connection, const char_t *uri, c case NO_ERROR: statusCode = 200; TRACE_INFO("Received new file:\r\n"); - TRACE_INFO(" '%s'\r\n", ctx.root_path); TRACE_INFO(" '%s'\r\n", ctx.filename); osSnprintf(message, sizeof(message), "%s", &ctx.filename[strlen(ctx.root_path) + 1]); break;