mirror of
https://github.com/docker/docs.git
synced 2026-03-31 08:18:55 +07:00
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 9cb8fb6ea03fcd78010ce7dd33585d96cd73e38c) Signed-off-by: Victor Vieux <vieux@docker.com>