Sam Ford 94449d07c0
parse_curl_response: Handle duplicate headers
`Curl#parse_curl_response` only includes the last instance of a given
header in its `:headers` hash (replicating pre-existing behavior).
This is a problem for headers like `Set-Cookie`, which can appear more
than once in a response.

This commit addresses the issue by collecting duplicate headers into
an array instead. Headers that only appear once in the response will
still have a string value but headers that appear more than once will
be an array of strings. Whenever headers from `#parse_curl_response`
are used (directly or indirectly), it's important to conditionally
handle the expected types.
2022-05-06 10:51:22 -04:00
..
2022-04-25 00:29:05 -07:00
2022-02-24 12:31:32 +00:00
2022-02-07 00:07:36 +00:00
2022-04-27 18:42:11 +01:00
2022-04-30 22:05:35 +02:00
2022-02-22 15:27:43 +00:00
2022-02-11 10:49:21 -05:00
2022-04-28 10:40:16 -04:00
2022-02-08 12:08:32 -05:00
2022-04-30 22:05:35 +02:00
2022-04-12 15:53:03 -07:00
2022-03-28 20:11:04 -04:00

Homebrew Ruby API

This is the API for Homebrew.

The main class you should look at is the {Formula} class (and classes linked from there). That's the class that's used to create Homebrew formulae (i.e. package descriptions). Assume anything else you stumble upon is private.

You may also find the Formula Cookbook and Ruby Style Guide helpful in creating formulae.

Good luck!