New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #27881 (closed enhancement: wontfix)

Opened 2 years ago

Last modified 2 years ago

user agent patch src/port1.0/portfetch.tcl

Reported by: brad@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.9.2
Keywords: Cc: ryandesign@…
Port:

Description (last modified by ryandesign@…) (diff)

Found --user-agent arg in curl.c but no way to use it within a Portfile.

This patch is for src/port1.0/portfetch.tcl to allow setting new fetch.user_agent var in Portfiles.

With this patch I was able to get around the fetch issues with the new port skrooge. #27865

The skrooge server didn't like our user agent header.
With this patch I add the following to Portfile and fetch succeeds:

fetch.user_agent "Mozilla/4.0"

Attachments

patch-src-port1.0-portfetch.tcl.diff (1.7 KB) - added by brad@… 2 years ago.

Change History

Changed 2 years ago by brad@…

comment:1 Changed 2 years ago by ryandesign@…

  • Cc ryandesign@… added
  • Description modified (diff)

I'm not convinced we want to allow portfiles to specify the curl useragent. Servers that disallow our useragent to download files are pretty broken and should be fixed.

comment:2 Changed 2 years ago by pixilla@…

  • Status changed from new to closed
  • Resolution set to wontfix
Note: See TracTickets for help on using tickets.