Make webhooks follow redirects #3121

Closed
opened 2025-11-02 05:01:19 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @h774211 on GitHub (Mar 30, 2019).

  • Gitea version (or commit ref): all
  • Git version: all
  • Operating system: all
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I want Google Apps Script to handle webhooks but the script URL redirects to a one-time URL on another domain for security reasons and that causes an error.

Screenshots

Originally created by @h774211 on GitHub (Mar 30, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): all - Git version: all - Operating system: all - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant - Log gist: ## Description I want Google Apps Script to handle webhooks but the script URL redirects to a one-time URL on another domain for security reasons and that causes an error. ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the type/proposal label 2025-11-02 05:01:19 -06:00
Author
Owner

@lunny commented on GitHub (Apr 25, 2021):

I think webhook has the default setting of http.Client which will follow 10 times redirects.

@lunny commented on GitHub (Apr 25, 2021): I think webhook has the default setting of `http.Client` which will follow 10 times redirects.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3121