[PR #10275] [MERGED] server: send 405 instead of 404 for unallowed methods #59890

Closed
opened 2026-04-29 14:48:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/10275
Author: @drifkin
Created: 4/14/2025
Status: Merged
Merged: 5/6/2025
Merged by: @jmorganca

Base: mainHead: drifkin/5483


📝 Commits (1)

  • 1547d3e server: send 405 instead of 404 for unallowed methods

📊 Changes

2 files changed (+11 additions, -0 deletions)

View changed files

📝 server/routes.go (+1 -0)
📝 server/routes_test.go (+10 -0)

📄 Description

Fixes: #5483


🔄 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/10275 **Author:** [@drifkin](https://github.com/drifkin) **Created:** 4/14/2025 **Status:** ✅ Merged **Merged:** 5/6/2025 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `drifkin/5483` --- ### 📝 Commits (1) - [`1547d3e`](https://github.com/ollama/ollama/commit/1547d3e66d9e139ca8b60b0eb6fdfc7bc5b32660) server: send 405 instead of 404 for unallowed methods ### 📊 Changes **2 files changed** (+11 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `server/routes.go` (+1 -0) 📝 `server/routes_test.go` (+10 -0) </details> ### 📄 Description Fixes: #5483 --- <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-29 14:48:41 -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#59890