Skip to content

Commit

Permalink
Spoolman proxy, include all custom headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Clon1998 committed Apr 22, 2024
1 parent 1725589 commit 5bc4b7d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions moonraker/components/spoolman.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,13 +371,10 @@ async def _proxy_spoolman_request(self, web_request: WebRequest):
}
}
else:
response_headers = {}
if response.headers is not None and 'x-total-count' in response.headers:
response_headers['x-total-count'] = response.headers['x-total-count']


Check warning on line 374 in moonraker/components/spoolman.py

View workflow job for this annotation

GitHub Actions / lint-python-code

blank line contains whitespace
return {
"response": response.json(),
"response_headers": response_headers,
"response_headers": {header: value for header, value in response.headers.items() if header.lower().startswith('x-')},

Check warning on line 377 in moonraker/components/spoolman.py

View workflow job for this annotation

GitHub Actions / lint-python-code

line too long (133 > 88 characters)
"error": None
}

Expand Down

0 comments on commit 5bc4b7d

Please sign in to comment.