1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
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 Make experimental a runtime flag 2016-10-24 15:20:01 -07:00
middleware.go Move middleware to interfaces. 2016-04-11 09:19:27 -07:00
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