moby--moby/api/server/middleware
Sebastiaan van Stijn e9dac5ef5e
Always return version and server headers
If a 400 error is returned due to an API version mismatch, no
version and server-identification headers were returned by the API.

All information in these headers is "static", so there is no
reason to omit the information in case of an error being
returned.

This patch updates the version middleware to always
return the headers.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-10-11 22:06:43 +02:00
..
cors.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
debug.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
debug_test.go middleware: Redact secret data on "secret create" 2017-06-29 16:04:47 -07:00
experimental.go
middleware.go
version.go Always return version and server headers 2017-10-11 22:06:43 +02:00
version_test.go Always return version and server headers 2017-10-11 22:06:43 +02:00