From 6f347345cf9d88e6e95f50d75282ae86bd9b6625 Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Thu, 26 Mar 2026 17:34:11 -0300 Subject: [PATCH] Add protobuf headers to PlayPlay license request --- votify/api/api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/votify/api/api.py b/votify/api/api.py index bfecf3c..217e843 100644 --- a/votify/api/api.py +++ b/votify/api/api.py @@ -718,6 +718,10 @@ class SpotifyApi: response = await self.client.post( PLAYPLAY_LICENSE_API_URL.format(file_id=file_id), content=request.SerializeToString(), + headers={ + "Accept": "application/x-protobuf", + "Content-Type": "application/x-protobuf", + }, ) response_bytes = response.content @@ -726,10 +730,6 @@ class SpotifyApi: name="PlayPlay license", response_status_code=response.status_code, response_text=response.text, - headers={ - "Accept": "application/x-protobuf", - "Content-Type": "application/x-protobuf", - }, ) playplay_license = PlayPlayLicenseResponse()