[PR #15365] [CLOSED] server: respect http_proxy environment variables for all requests #25664

Closed
opened 2026-04-19 18:20:23 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/15365
Author: @sleepingbeauty1
Created: 4/6/2026
Status: Closed

Base: mainHead: fix/issue-15358


📝 Commits (1)

  • 60ab913 server: respect http_proxy environment variables for all requests

📊 Changes

2 files changed (+75 additions, -5 deletions)

View changed files

📝 server/images.go (+10 -5)
📝 server/images_test.go (+65 -0)

📄 Description

Fixes: #15358

The HTTP client was created without explicit proxy configuration, causing HTTP requests to bypass proxy settings while HTTPS requests worked correctly. This affected users in corporate/proxied environments.

Add explicit http.ProxyFromEnvironment to the transport to ensure both HTTP and HTTPS requests respect the http_proxy, https_proxy, and no_proxy environment variables.


🔄 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/ollama/ollama/pull/15365 **Author:** [@sleepingbeauty1](https://github.com/sleepingbeauty1) **Created:** 4/6/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/issue-15358` --- ### 📝 Commits (1) - [`60ab913`](https://github.com/ollama/ollama/commit/60ab913b415108d6f9c075fbacdcea2e74e78a78) server: respect http_proxy environment variables for all requests ### 📊 Changes **2 files changed** (+75 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `server/images.go` (+10 -5) 📝 `server/images_test.go` (+65 -0) </details> ### 📄 Description Fixes: #15358 The HTTP client was created without explicit proxy configuration, causing HTTP requests to bypass proxy settings while HTTPS requests worked correctly. This affected users in corporate/proxied environments. Add explicit http.ProxyFromEnvironment to the transport to ensure both HTTP and HTTPS requests respect the http_proxy, https_proxy, and no_proxy environment variables. --- <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-19 18:20:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#25664