[PR #270] [MERGED] Fix HTTP headers for issue attachment download #15275

Closed
opened 2025-11-02 11:42:54 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/270
Author: @andreynering
Created: 11/26/2016
Status: Merged
Merged: 11/27/2016
Merged by: @andreynering

Base: masterHead: gitea/http-headers-download


📝 Commits (2)

  • 638dd24 Fix HTTP headers for issue attachment download
  • d647d02 Fix Chrome not liking commas

📊 Changes

2 files changed (+14 additions, -12 deletions)

View changed files

📝 cmd/web.go (+1 -5)
📝 routers/repo/download.go (+13 -7)

📄 Description

This fixes:

  • Download filename was wrong for files other than images. Example: It was download instead of file.pdf
  • PDF was downloading instead of showing on browser

🔄 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/go-gitea/gitea/pull/270 **Author:** [@andreynering](https://github.com/andreynering) **Created:** 11/26/2016 **Status:** ✅ Merged **Merged:** 11/27/2016 **Merged by:** [@andreynering](https://github.com/andreynering) **Base:** `master` ← **Head:** `gitea/http-headers-download` --- ### 📝 Commits (2) - [`638dd24`](https://github.com/go-gitea/gitea/commit/638dd24cec6f2951ecd4550165b858138c4c3f40) Fix HTTP headers for issue attachment download - [`d647d02`](https://github.com/go-gitea/gitea/commit/d647d02c2f9816effd50b2eea45aa65fb1b4047c) Fix Chrome not liking commas ### 📊 Changes **2 files changed** (+14 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `cmd/web.go` (+1 -5) 📝 `routers/repo/download.go` (+13 -7) </details> ### 📄 Description This fixes: - Download filename was wrong for files other than images. Example: It was `download` instead of `file.pdf` - PDF was downloading instead of showing on browser --- <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-02 11:42:54 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15275