Files
client/artdag.py
gilesb 9e13a4ce3d Fix JSON decode error by adding Accept header to all API requests
The CLI was getting empty responses from the server because it wasn't
sending Accept: application/json header. The server uses content
negotiation and returns HTML for browser requests.

Changes:
- Updated get_auth_header() to always include Accept: application/json
- Simplified all commands to use get_auth_header(require_token=True)
- Removed redundant token_data checks now handled by get_auth_header

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 14:46:55 +00:00

74 KiB
Executable File