Files
compiler-explorer/static
Matt GodboltandClaude 66059f06de Optimize safeFetch calls to use automatic JSON handling
Take advantage of new automatic JSON stringification and header management:

**Simplified calls by removing manual JSON handling:**
- sharing.ts: Remove manual JSON.stringify() and redundant headers
- main.ts: Remove manual JSON.stringify() and Content-Type header
- panes/editor.ts: Remove manual JSON.stringify() and Content-Type header
- widgets/libs-widget.ts: Remove redundant Accept header (auto-added by parseAs: 'json')
- api/api.ts: Remove redundant Accept header from API helper

**Benefits:**
- Reduced code by 2-3 lines per call (15 lines total)
- More readable and less error-prone
- Demonstrates improved safeFetch API in action
- Consistent with modern fetch patterns

All calls now use automatic object stringification and smart header management.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-31 14:19:36 -05:00
..
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-06-18 09:04:23 -05:00
2025-06-19 08:46:57 -05:00
2025-07-28 10:34:46 -05:00
2025-02-26 02:07:09 +02:00
2025-07-28 10:34:46 -05:00
2025-06-18 09:04:23 -05:00
2025-07-28 10:34:46 -05:00
2025-04-24 12:10:37 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00