moby--moby/pkg/authorization
Yong Tang 9cb8fb6ea0 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>
2016-08-23 21:08:23 -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-23 11:32:23 +08:00
authz_unix_test.go Use const http status code instead of just numbers see #24783 2016-07-19 10:40:20 +03:00
middleware.go Enable to dynamically reload authorization plugins via daemon.config 2016-07-30 14:59:07 +03:00
plugin.go Enable to dynamically reload authorization plugins via daemon.config 2016-07-30 14:59:07 +03:00
response.go Fix AuthZ plugins headers change issue 2016-08-23 21:08:23 -07:00