Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

fix: send user agent header with libp2p version #12

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented May 19, 2023

The AgentVersion metadata is set by the identify service.

If it's present, send it as the user agent header with all requests.

N.b. this is currently broken in Chromium as it doesn't allow overriding the user agent in fetch requests event though the spec says it should.

Fixes #10

The `AgentVersion` metadata is set by the identify service.

If it's present, send it as the user agent header with all requests.

N.b. this is currently broken in Chromium as it doesn't allow
overriding the user agent in fetch requests event though the spec
says it should.
@achingbrain
Copy link
Member Author

Marking this as a draft because it needs Chrome to support the fetch spec properly before it'll work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add user agent header with libp2p version
1 participant