mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #3319] [MERGED] Use Http status code 204 instead of 200 #9447
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/3319
Author: @daullmer
Created: 6/12/2020
Status: ✅ Merged
Merged: 6/15/2020
Merged by: @dkanada
Base:
api-migration← Head:api-204📝 Commits (2)
043d76bUse Http status code 204 instead of 2009bedd9aMerge remote-tracking branch 'upstream/api-migration' into api-204📊 Changes
5 files changed (+53 additions, -52 deletions)
View changed files
📝
Jellyfin.Api/Controllers/ConfigurationController.cs(+9 -9)📝
Jellyfin.Api/Controllers/DevicesController.cs(+8 -8)📝
Jellyfin.Api/Controllers/NotificationsController.cs(+12 -12)📝
Jellyfin.Api/Controllers/PackageController.cs(+8 -7)📝
Jellyfin.Api/Controllers/StartupController.cs(+16 -16)📄 Description
Changes
Switch to use Http status code 204 instead of 200 when returning no result in Jellyfin,Api.
The old Api endpoint checks if the response is empty and returns 204 instead of 200.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.