Skip to content

Commit

Permalink
We do support POST requests
Browse files Browse the repository at this point in the history
  • Loading branch information
spl0k committed Jun 1, 2024
1 parent 2f90744 commit 1271b30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion supysonic/api/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@

@api_routing("/getOpenSubsonicExtensions")
def extensions():
return request.formatter("openSubsonicExtensions", [])
extensions = [{"name": "formPost", "versions": [1]}]
return request.formatter("openSubsonicExtensions", extensions)
2 changes: 1 addition & 1 deletion supysonic/api/formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __call__(self, *args, **kwargs):
class JSONBaseFormatter(BaseFormatter):
def __remove_empty_lists(self, d):
if not isinstance(d, dict):
raise TypeError("Expecting a dict got " + type(d).__name__)
return d

keys_to_remove = []
for key, value in d.items():
Expand Down

0 comments on commit 1271b30

Please sign in to comment.