]> source.dussan.org Git - jgit.git/commit
Support "http.userAgent" and "http.extraHeader" from the git config 70/132970/8
authorJames Wynn <james@jameswynn.com>
Mon, 31 Aug 2020 20:32:13 +0000 (15:32 -0500)
committerMatthias Sohn <matthias.sohn@sap.com>
Sat, 26 Sep 2020 21:42:38 +0000 (23:42 +0200)
commit2171f868d95f110024e90de635627f14a3fb4700
tree054a9fe53044421e32c74f9bf7e203624093af47
parent3459239dfc224a5164a07f2afe3ec406a357937b
Support "http.userAgent" and "http.extraHeader" from the git config

Validate the extra headers and log but otherwise ignore invalid
headers. An empty http.extraHeader starts the list afresh.

The http.userAgent is restricted to printable 7-bit ASCII, other
characters are replaced by '.'.

Moves a support method from the ssh.apache bundle to HttpSupport in
the main JGit bundle.

Bug:541500
Change-Id: Id2d8df12914e2cdbd936ff00dc824d8f871bd580
Signed-off-by: James Wynn <james@jameswynn.com>
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/proxy/HttpParser.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/HttpConfigTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/TransportHttpTest.java
org.eclipse.jgit/.settings/.api_filters
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/HttpConfig.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/UserAgent.java
org.eclipse.jgit/src/org/eclipse/jgit/util/HttpSupport.java