Skip to content

Commit

Permalink
spoolman: Add spoolman response headers to proxy results
Browse files Browse the repository at this point in the history
Added the response headers to the V2 response of the proxy implementation as a new field named "response_headers".

Signed-off-by: Patrick Schmidt <ps.patti1998@gmail.com>
  • Loading branch information
Clon1998 authored and Arksine committed Apr 24, 2024
1 parent b631ec4 commit c857e1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions moonraker/components/spoolman.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ async def _proxy_spoolman_request(self, web_request: WebRequest):
else:
return {
"response": response.json(),
"response_headers": dict(response.headers.items()),
"error": None
}

Expand Down

0 comments on commit c857e1a

Please sign in to comment.