[
https://issues.apache.org/jira/browse/NIFI-10397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17602602#comment-17602602
]
Dustin Rodrigues commented on NIFI-10397:
-----------------------------------------
It doesn't seem like there's a way to omit the User-Agent header with the
okhttp library. If none is passed in, it will use a default value:
https://github.com/square/okhttp/blob/6b07f6227416506a44bb97012551929cd6a1dd79/okhttp/src/main/kotlin/okhttp3/internal/http/BridgeInterceptor.kt#L79-L81
> InvokeHTTP is sending empty User-Agent header
> ---------------------------------------------
>
> Key: NIFI-10397
> URL: https://issues.apache.org/jira/browse/NIFI-10397
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Josh Highley
> Priority: Minor
>
> Issue introduced by this change: [https://github.com/apache/nifi/pull/4428]
> When the InvokeHTTP processor configuration has no value for UserAgent,
> InvokeHTTP is still sending a User-Agent header but with no header value.
> (User-Agent: \r\n)
> If the configuration has no value, then no User-Agent header should be sent.
> An empty value for User-Agent header will trigger some request scanners
> attempting to block robots.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)