Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
Lavalink
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Egor Kulev
Lavalink
Commits
ee0ccdae
Commit
ee0ccdae
authored
6 years ago
by
Frederik Mikkelsen
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/dev'
parents
68f551b1
2279ca91
No related branches found
Branches containing commit
Tags
3.1.2
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+12
-0
12 additions, 0 deletions
CHANGELOG.md
IMPLEMENTATION.md
+2
-0
2 additions, 0 deletions
IMPLEMENTATION.md
LavalinkServer/src/main/java/lavalink/server/io/ResponseHeaderFilter.java
+21
-0
21 additions, 0 deletions
...rc/main/java/lavalink/server/io/ResponseHeaderFilter.java
with
35 additions
and
0 deletions
CHANGELOG.md
+
12
−
0
View file @
ee0ccdae
...
...
@@ -14,6 +14,18 @@ Contributors:
[
@Frederikam
](
https://github.com/Frederikam/
)
,
[
@calebj
](
https://github.com/calebj
)
## v3.1.2
*
Add API version header to all responses
Contributor:
[
@Devoxin
](
https://github.com/Devoxin
)
## v3.1.1
*
Add equalizer support
Contributor:
[
@Devoxin
](
https://github.com/Devoxin
)
## v3.1
*
Replaced JDAA with Magma
*
Added an event for when the Discord voice WebSocket is closed
...
...
This diff is collapsed.
Click to expand it.
IMPLEMENTATION.md
+
2
−
0
View file @
ee0ccdae
...
...
@@ -307,6 +307,8 @@ Additionally, in every `/loadtracks` response, a `loadType` property is returned
*
`NO_MATCHES`
- Returned if no matches/sources could be found for a given identifier.
*
`LOAD_FAILED`
- Returned if Lavaplayer failed to load something for some reason.
All REST responses from Lavalink include a
`Lavalink-Api-Version`
header.
### Special notes
*
When your shard's mainWS connection dies, so does all your lavalink audio connections.
*
This also includes resumes
...
...
This diff is collapsed.
Click to expand it.
LavalinkServer/src/main/java/lavalink/server/io/ResponseHeaderFilter.java
0 → 100644
+
21
−
0
View file @
ee0ccdae
package
lavalink.server.io
;
import
org.springframework.stereotype.Component
;
import
org.springframework.web.filter.OncePerRequestFilter
;
import
javax.servlet.FilterChain
;
import
javax.servlet.ServletException
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
@Component
public
class
ResponseHeaderFilter
extends
OncePerRequestFilter
{
@Override
protected
void
doFilterInternal
(
HttpServletRequest
request
,
HttpServletResponse
response
,
FilterChain
filterChain
)
throws
IOException
,
ServletException
{
response
.
addHeader
(
"Lavalink-Api-Version"
,
"3"
);
filterChain
.
doFilter
(
request
,
response
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment