[PR #7474] [CLOSED] Fix: return direct URL when OCI registry is not redirecting #11173

Closed
opened 2025-11-12 16:08:15 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/7474
Author: @peterwilli
Created: 11/2/2024
Status: Closed

Base: mainHead: fix/oci_redirect


📝 Commits (1)

  • cc2a01f Fix: return direct URL when OCI registry is not redirecting

📊 Changes

1 file changed (+5 additions, -1 deletions)

View changed files

📝 server/download.go (+5 -1)

📄 Description

When debugging why I couldn't use a regular OCI registry (See screenshot below), I found out the ollama server was doing a redirect to AWS. This change returns the direct URL when such redirect does not happen, while assuring regular behavior when it does, so that regular pulls still work!

SCR-20241102-rgnu

This PR fixes https://github.com/ollama/ollama/issues/7244


🔄 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/7474 **Author:** [@peterwilli](https://github.com/peterwilli) **Created:** 11/2/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/oci_redirect` --- ### 📝 Commits (1) - [`cc2a01f`](https://github.com/ollama/ollama/commit/cc2a01fa631dc1104539ff2cd3b65e46d8e89333) Fix: return direct URL when OCI registry is not redirecting ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `server/download.go` (+5 -1) </details> ### 📄 Description When debugging why I couldn't use a regular OCI registry (See screenshot below), I found out the ollama server was doing a redirect to AWS. This change returns the direct URL when such redirect does not happen, while assuring regular behavior when it does, so that regular pulls still work! <img width="1710" alt="SCR-20241102-rgnu" src="https://github.com/user-attachments/assets/26c97b1e-f0d6-4b9f-82ac-a33e14f64fb3"> This PR fixes https://github.com/ollama/ollama/issues/7244 --- <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 2025-11-12 16:08:15 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama-ollama#11173