Skip to content

User agent - #10

Merged
bfabio merged 3 commits into
mainfrom
user-agent
Sep 22, 2026
Merged

bfabio merged 3 commits into
mainfrom
user-agent

Conversation

@bfabio

@bfabio bfabio commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

No description provided.

bfabio and others added 3 commits September 22, 2026 12:00
A binary built from a list of files carries no module version in its
build information, so the library could not tell which version of
itself was running.
The link time flags duplicated what the toolchain already stamps into
a binary built from its package. The version now carries the v prefix,
as Go reports it.
Go's default "Go-http-client/<version>" is the User-Agent of every Go
program, so a site behind a WAF or a bot protection challenges it and
the parser reports perfectly reachable URLs as errors. Naming the tool
lets an administrator write a rule for it instead of allowing every Go
program.

See italia/publiccode-parser-go#421.

Co-authored-by: Fabio Bonelli <fb@fabiobonelli.it>
@bfabio
bfabio enabled auto-merge (rebase) September 22, 2026 19:22
@bfabio
bfabio merged commit 3f9aa2d into main Sep 22, 2026
12 checks passed
@bfabio
bfabio deleted the user-agent branch September 22, 2026 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants