distribution/registry/handlers
Tianon Gravi 8907f7d189 Update "Accept" header parsing for list values
In Go's header parsing, the same header multiple times results in multiple entries in the `r.Header[...]` slice, but Go does no further parsing beyond that (and in https://golang.org/cl/4528086 it was determined that until/unless the stdlib itself needs it, Go will not do so).

The consequence here for parsing of `Accept:` headers is that we support the way Go outputs headers, but not all language HTTP libraries have a facility to output multiple headers instead of a single list header.

This change ensures that the following (valid) header blocks all parse to the same result for the purposes of what is being tested here:

```
Accept: a/b
Accept: b/c
Accept: d/e
```

```
Accept: a/b; q=0.5, b/c
Accept: d/e
```

```
Accept: a/b; q=0.1, b/c; q=0.2, d/e; q=0.8
```

Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
2016-06-10 16:52:27 -07:00
..
api_test.go Update "Accept" header parsing for list values 2016-06-10 16:52:27 -07:00
app.go Merge pull request #1687 from RichardScothern/signature-store 2016-05-31 09:09:39 -07:00
app_test.go Enable URLs returned from the registry to be configured as relative. 2016-03-23 15:14:32 -07:00
basicauth.go Move registry package into handler package 2015-02-10 17:25:40 -08:00
basicauth_prego14.go Move registry package into handler package 2015-02-10 17:25:40 -08:00
blob.go Add an "enabled" parameter under "readonly", and make it as if the mutable handlers don't exist when read-only mode is enabled 2015-09-22 15:49:26 -07:00
blobupload.go Pass through known errors 2016-04-29 23:34:24 +02:00
catalog.go Create Repositories method 2015-07-21 21:45:14 -07:00
context.go Update auth context keys to use constant 2016-01-28 17:02:09 -08:00
health_test.go Move initialization code from main.go to the registry package 2015-09-09 14:39:31 -07:00
helpers.go fix typos 2016-06-02 23:03:27 +08:00
hmac.go Refactor Blob Service API 2015-05-15 17:05:18 -07:00
hmac_test.go Refactor Blob Service API 2015-05-15 17:05:18 -07:00
hooks.go Feature: Web Panic Reporting via hooks 2015-05-31 14:21:22 +00:00
images.go Update "Accept" header parsing for list values 2016-06-10 16:52:27 -07:00
mail.go Feature: Web Panic Reporting via hooks 2015-05-31 14:21:22 +00:00
tags.go Pass through known errors 2016-04-29 23:34:24 +02:00