1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
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
authz.go
authz_unix_test.go
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