Skip to content

Conversation

@Yoooi0
Copy link
Contributor

@Yoooi0 Yoooi0 commented Jun 25, 2024

When using the /heresphere api the media urls are returned with a trailing slash:

http://localhost:9999/api/dms/file/1/
http://localhost:9999/api/dms/file/1/?dnt=true

This PR fixes it to:

http://localhost:9999/api/dms/file/1
http://localhost:9999/api/dms/file/1?dnt=true

Which also matches the /deovr api:

URL: fmt.Sprintf("%v/api/dms/file/%v/%v%v", session.DeoRequestHost, file.ID, scene.GetFunscriptTitle(), dnt),

Blame #969

@crwxaj crwxaj merged commit a079b71 into xbapps:master Jul 2, 2024
@Yoooi0 Yoooi0 deleted the fix-heresphere-api-url branch November 9, 2024 02:43
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