← Commit list

27c3e0839a

Daniel Stenberg
Daniel Stenberg
2026-03-06
SUCCESS Duration: 283s

Subject

content_encoding: return 'identity' if none other exists

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/content_encoding.c+3 -0
@@ -622,6 +622,9 @@ char *Curl_get_content_encodings(void)
result = curlx_dyn_add(&enc, ce->name);
}
}
+ if(!result && !curlx_dyn_len(&enc))
+ result = curlx_dyn_add(&enc, CONTENT_ENCODING_DEFAULT);
+
if(!result)
return curlx_dyn_ptr(&enc);
return NULL;