Unable to bind Headers to a Http task

Unable to bind the http headers to an Http task with keys that have a : as a value. When we look at the exception stack (detailed below) and check line 264 of the code, it has a check that prevents values of http headers from having a colon in it (Code snippet also included below).
HTTP_TASK_REQUEST_HEADERS_INVALID = requestHeaders are invalid

Stack:

org.flowable.engine.common.api.FlowableException: requestHeaders are invalid
at org.flowable.http.impl.HttpActivityBehaviorImpl.setHeaders(HttpActivityBehaviorImpl.java:264) ~[flowable-http-6.1.2.jar:6.1.2]

Code from HttpActivityBehaviorImpl

protected void setHeaders(final HttpMessage base, final String headers) throws IOException {
try (BufferedReader reader = new BufferedReader(new StringReader(headers))) {
String line = reader.readLine();
while (line != null) {
String[] header = line.split(":");
if (header.length == 2) {
base.addHeader(header[0], header[1]);
line = reader.readLine();
} else {
throw new FlowableException(HTTP_TASK_REQUEST_HEADERS_INVALID);
}
}
}
}

Sample Header that we are passing
host:localhost:7000
connection:keep-alive
content-length:48
postman-token:ffff44c7-e789-ba46-2f5a-8271b4dd7aba
cache-control:no-cache
origin:chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop
user-agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
content-type:application/json
accept:/
accept-encoding:gzip, deflate, br
accept-language:en-US,en;q=0.8

Hi,

Ok that’s indeed an issue. Could you create a Github issue with this information?

Best regards,

Tijs

Hi

I remember there was a fix for this. But we did not change our version of flowable…6.1.2

Can we have a patch for this on 6.1.2

Sunil