Verified image download from external URLs works without API-specific headers
ComfyUI paths correctly retain their headers (they serve images directly)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/21636
**Author:** [@hztBUAA](https://github.com/hztBUAA)
**Created:** 2/20/2026
**Status:** ❌ Closed
**Base:** `main` ← **Head:** `fix/image-gen-header`
---
### 📝 Commits (1)
- [`e5e3225`](https://github.com/open-webui/open-webui/commit/e5e32253d52316ae42277127a47864cf6ecc1ed8) fix: remove API headers when downloading generated image URLs
### 📊 Changes
**1 file changed** (+2 additions, -2 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/open_webui/routers/images.py` (+2 -2)
</details>
### 📄 Description
contributor license agreement
## Summary
- Stop passing API request headers (`Authorization`, `Content-Type: application/json`) when downloading generated image URLs from external CDN/OSS servers
- API headers are only appropriate for the API request itself, not for fetching the resulting image URLs which are on different servers
Closes #21301
## Test plan
- Verified image download from external URLs works without API-specific headers
- ComfyUI paths correctly retain their headers (they serve images directly)
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/21636
Author: @hztBUAA
Created: 2/20/2026
Status: ❌ Closed
Base:
main← Head:fix/image-gen-header📝 Commits (1)
e5e3225fix: remove API headers when downloading generated image URLs📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
backend/open_webui/routers/images.py(+2 -2)📄 Description
contributor license agreement
Summary
Authorization,Content-Type: application/json) when downloading generated image URLs from external CDN/OSS serversCloses #21301
Test plan
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.