-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored the method to handle the retrieval of Zammad attachments.
- Set the HTTP method to 'get' and enabled file buffering. - Added error handling to raise a ConfigError if an error occurs during the request. - Extracted the image and response from the result. - Obtained the content type from the response headers. - Returned the image as an HTTP response with the appropriate content type. This change ensures proper handling of Zammad attachments and improves error handling.
- Loading branch information
1 parent
0aab129
commit 98c2c0f
Showing
2 changed files
with
26 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters