[ https://issues.apache.org/jira/browse/HTTPCLIENT-1952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16710571#comment-16710571 ]
Antony Bowesman commented on HTTPCLIENT-1952: --------------------------------------------- I agree with Michael, that having an empty header is a valid use case. I've dealt with projects where they used headers as flags. In one library I used, I had to make that header a single space, as it removed headers that had no value. The ABNF in RFC7230 also defines the field value as field-value = *( field-content / obs-fold ) which would indicate that empty values are valid. > Allow default User Agent to be disabled > --------------------------------------- > > Key: HTTPCLIENT-1952 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1952 > Project: HttpComponents HttpClient > Issue Type: Improvement > Components: HttpCache > Affects Versions: 4.5.6 > Reporter: Antony Bowesman > Priority: Minor > > There is no way to disable the User-Agent header. In any kind of micro > service architecture, where UA header is irrelevant, the header cannot be > removed. > This has been seen as an issue using JMeter, see link > [https://bz.apache.org/bugzilla/show_bug.cgi?id=62977#c1] > See comment #1 there from [~michael-o] > -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org For additional commands, e-mail: dev-h...@hc.apache.org