moby--moby/pkg/authorization
Yong Tang f2a48d2ff3 Fix AuthZ plugins headers change issue
This fix tries to address the issue raised in 25927 where
the HTTP headers have been chaged when AUthZ plugin is in
place.

This issue is that in `FlushAll` (`pkg/authorization/response.go`),
the headers have been written (with `WriteHeader`) before all the
headers have bee copied.

This fix fixes the issue by placing `WriteHeader` after.

A test has been added to cover the changes.`

This fix fixes 25927

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
(cherry picked from commit 9cb8fb6ea0)
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-09-26 19:35:37 -07:00
..
api.go pkg: authorization: add Err to tweak response status code 2015-12-17 11:08:47 +01:00
authz.go fix typos 2016-07-25 23:18:15 -07:00
authz_unix_test.go plugins: experimental support for new plugin management 2016-06-14 14:20:27 -07:00
middleware.go Move middleware to interfaces. 2016-04-11 09:19:27 -07:00
plugin.go plugins: experimental support for new plugin management 2016-06-14 14:20:27 -07:00
response.go Fix AuthZ plugins headers change issue 2016-09-26 19:35:37 -07:00