[PR #21636] [CLOSED] fix: correct request header in image generation function #26174

Closed
opened 2026-04-20 06:22:30 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/21636
Author: @hztBUAA
Created: 2/20/2026
Status: Closed

Base: mainHead: fix/image-gen-header


📝 Commits (1)

  • e5e3225 fix: 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

  • 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)

🔄 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>
GiteaMirror added the pull-request label 2026-04-20 06:22:30 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#26174