Merge pull request #89 from jlhawn/version_header

Add Docker Distribution API Version header
master
Stephen Day 2015-01-20 13:42:12 -08:00
commit c448e04169
1 changed files with 2 additions and 0 deletions

View File

@ -88,6 +88,8 @@ func NewApp(configuration configuration.Configuration) *App {
}
func (app *App) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// Set a header with the Docker Distribution API Version for all responses.
w.Header().Add("Docker-Distribution-API-Version", "registry/2.0")
app.router.ServeHTTP(w, r)
}