Skip to content

allow sending custom user-agent #2138

@derhuerst

Description

@derhuerst

Describe the problem

Currently, the HTTP User-Agent sent by the GTFS Validator is hard-coded.

This poses a problem during server logs analysis if I want to tell HTTP requests done by non-GTFS-Validator users/machines from those done by the GTFS Validator.

Proposed solution

I want to be able to set a custom User-Agent, either via an environment variable or via a CLI flag.

While we're add it, the ability to send any custom HTTP header would be very useful, e.g. for authentication or request tracing.

Alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature request or improvement on an existing featurestatus: Needs triageApplied to all new issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions