Skip to content

Commit

Permalink
Minor change in configuring router in dockplugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dvavili committed Feb 11, 2016
1 parent 8320664 commit d0e8e07
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mgmtfn/dockplugin/dockplugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ func InitDockPlugin(netplugin *plugin.NetPlugin) error {
log.Debugf("Configuring router")

router := mux.NewRouter()
s := router.Headers("Accept", "application/vnd.docker.plugins.v1.2+json").
Methods("POST").Subrouter()
s := router.Methods("POST").Subrouter()

dispatchMap := map[string]func(http.ResponseWriter, *http.Request){
"/Plugin.Activate": activate(hostname),
Expand Down

0 comments on commit d0e8e07

Please sign in to comment.