We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38a6f10 commit c31a472Copy full SHA for c31a472
1 file changed
image-kit-java-core/src/main/kotlin/io/imagekit/core/ClientOptions.kt
@@ -436,6 +436,14 @@ private constructor(
436
(System.getProperty("imagekit.imagekitWebhookSecret")
437
?: System.getenv("IMAGEKIT_WEBHOOK_SECRET"))
438
?.let { webhookSecret(it) }
439
+ System.getenv("IMAGE_KIT_CUSTOM_HEADERS")?.let { customHeadersEnv ->
440
+ for (line in customHeadersEnv.split("\n")) {
441
+ val colon = line.indexOf(':')
442
+ if (colon >= 0) {
443
+ putHeader(line.substring(0, colon).trim(), line.substring(colon + 1).trim())
444
+ }
445
446
447
}
448
449
/**
0 commit comments