Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
changed typo and variable localtion
Browse files Browse the repository at this point in the history
  • Loading branch information
candysmurf committed Feb 10, 2017
1 parent 7ed7e38 commit af93c93
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/SNAPTELD_CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ restapi:
# port sets the port to start the REST API server on. Default is 8181
port: 8181

# corsd sets the allowed origins in a comma separated list. It defaults to the same origin if the value is empty.
# allowed_origins sets the allowed origins in a comma separated list. It defaults to the same origin if the value is empty.
allowed_origins: http://127.0.0.1:8080, http://snap.example.io, http://example.com
```

Expand Down
26 changes: 13 additions & 13 deletions mgmt/rest/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,22 @@ var (
)

type Server struct {
apis []api.API
n *negroni.Negroni
r *httprouter.Router
snapTLS *snapTLS
auth bool
pprof bool
authpwd string
addrString string
addr net.Addr
wg sync.WaitGroup
killChan chan struct{}
err chan error
apis []api.API
n *negroni.Negroni
r *httprouter.Router
snapTLS *snapTLS
auth bool
pprof bool
authpwd string
addrString string
addr net.Addr
wg sync.WaitGroup
killChan chan struct{}
err chan error
allowedOrigins map[string]bool
// the following instance variables are used to cleanly shutdown the server
serverListener net.Listener
closingChan chan bool
allowedOrigins map[string]bool
}

// New creates a REST API server with a given config
Expand Down

0 comments on commit af93c93

Please sign in to comment.