Sat, 18 Mar 2023 11:44:37 +0100
fix nsapi_error_request() could send empty error messages with http status 200, if the request status code wasn't set
// // Created by Olaf Wintermann on 23.02.23. // #include "logging.h" #include <stdio.h> int default_log_func(int degree, const char *format, va_list args) { vprintf(format, args); return 0; } static cfg_logfunc logfunc = default_log_func; int ws_cfg_log(int degree, const char *format, ...) { va_list args; va_start(args, format); int ret = logfunc(degree, format, args); va_end(args); return ret; } void ws_cfg_set_logfunc(cfg_logfunc func) { logfunc = func; }