S3: Send git-annex or other configured User-Agent.

--user-agent is the only way to configure it currently

(Needs aws-0.24.3)
This commit is contained in:
Joey Hess 2024-11-13 16:10:37 -04:00
parent 3f7953869d
commit 44da423e2e
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 34 additions and 8 deletions

View file

@ -1,3 +1,5 @@
### Please describe the problem.
git-annex does not appear to send a User-Agent when used with an S3 remote.
> [[fixed|done]] --[[Joey]]

View file

@ -0,0 +1,13 @@
[[!comment format=mdwn
username="joey"
subject="""comment 2"""
date="2024-11-13T19:52:28Z"
content="""
Drat, no followup. I seem to remember hearing about a S3 implementation
that either needed any User-Agent header (currently, git-annex does not
send one to S3), or perhaps a specific User-Agent. But I don't remember
details.
Anyway, I have implemented a patch to the aws library that can be used for
this.
"""]]

View file

@ -133,7 +133,8 @@ Most of these options are accepted by all git-annex commands.
* `--user-agent=value`
Overrides the User-Agent to use when downloading files from the web.
Overrides the User-Agent to use when downloading files from the web,
or otherwise accessing web services.
* `--notify-finish`