mirror of
https://github.com/openappsec/attachment.git
synced 2025-11-15 17:02:15 +03:00
@@ -14,7 +14,7 @@ static HttpHeaderData *
|
||||
get_http_header(HttpHeaders *http_headers, const char *header_name) {
|
||||
size_t i;
|
||||
for (i = 0; i < http_headers->headers_count; ++i) {
|
||||
if (strcmp((char*)http_headers->data[i].key.data, header_name) == 0) {
|
||||
if (strcasecmp((char*)http_headers->data[i].key.data, header_name) == 0) {
|
||||
return &http_headers->data[i];
|
||||
}
|
||||
}
|
||||
@@ -42,11 +42,11 @@ set_response_content_encoding(
|
||||
return;
|
||||
}
|
||||
|
||||
if (strcmp((char*)content_encoding->value.data, "gzip") == 0) {
|
||||
if (strcasecmp((char*)content_encoding->value.data, "gzip") == 0) {
|
||||
session_data_p->response_data.compression_type = GZIP;
|
||||
} else if (strcmp((char*)content_encoding->value.data, "deflate") == 0) {
|
||||
} else if (strcasecmp((char*)content_encoding->value.data, "deflate") == 0) {
|
||||
session_data_p->response_data.compression_type = ZLIB;
|
||||
} else if (strcmp((char*)content_encoding->value.data, "identity") == 0) {
|
||||
} else if (strcasecmp((char*)content_encoding->value.data, "identity") == 0) {
|
||||
session_data_p->response_data.compression_type = NO_COMPRESSION;
|
||||
} else {
|
||||
write_dbg(
|
||||
|
||||
@@ -385,7 +385,7 @@ set_docker_id(NanoAttachment *attachment)
|
||||
}
|
||||
|
||||
if (!uid_read) {
|
||||
const char *env_var_name = "OPENAPPSEC_UID"; // Replace with your environment variable name
|
||||
const char *env_var_name = "CLOUDGUARD_UID"; // Replace with your environment variable name
|
||||
const char *env_value = getenv(env_var_name);
|
||||
|
||||
if (env_value) {
|
||||
|
||||
Reference in New Issue
Block a user