Minor refactoring/fixes
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 38s

This commit is contained in:
Stephen Seo 2024-09-10 19:22:47 +09:00
parent a56adb171f
commit 57c0812c24

View file

@ -55,11 +55,11 @@ int c_simple_http_headers_check_print(void *data, void *ud) {
__attribute__((cleanup(simple_archiver_helper_cleanup_c_string)))
char *header_c_str_lowercase = c_simple_http_helper_to_lowercase(
header_c_str, strlen(header_c_str) + 1);
header_c_str, strlen(header_c_str));
char *matching_line = simple_archiver_hash_map_get(
headers_map,
header_c_str_lowercase,
strlen(header_c_str) + 1);
strlen(header_c_str_lowercase) + 1);
if (matching_line) {
printf("Printing header line: %s\n", matching_line);
}