Skip to content

Added the `Client-Name` header that Lavalink asks for.

Zacchary Dempsey-Plante requested to merge zedseven/lavalink-rs:master into master

When establishing a connection to Lavalink, Lavalink asks for the library to provide a Client-Name header.

This PR fixes this by providing the header, with the <name>/<version> as they suggest. (name and version are pulled from Cargo)

Now instead of seeing this in Lavalink logs upon startup:

Connection successfully established
Library developers: Please specify a 'Client-Name' header.

You see:

Connection successfully established from lavalink-rs/0.9.0-rc.2

Merge request reports