Skip to content

Commit 3f73a75

Browse files
committed
bumped to v0.5.1
1 parent e11fb75 commit 3f73a75

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ReadMe.Md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ that are otherwise difficult to consistently reproduce under test conditions.
1515
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
1616
[![Docker Pulls](https://img.shields.io/docker/pulls/simonmittag/mse6)](https://img.shields.io/docker/pulls/simonmittag/mse6)
1717
[![Docker Image Size](https://img.shields.io/docker/image-size/simonmittag/mse6?sort=date)](https://img.shields.io/docker/image-size/simonmittag/mse6?sort=date)
18-
[![Version](https://img.shields.io/badge/version-0.5.0-orange)](https://github.com/simonmittag/mse6/releases/tag/v0.5.0)
18+
[![Version](https://img.shields.io/badge/version-0.5.1-orange)](https://github.com/simonmittag/mse6/releases/tag/v0.5.1)
1919

2020
## Up and running
2121
### Docker

server.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
const waitDuration = time.Second * 3
1212

13-
var Version = "v0.5.0"
13+
var Version = "v0.5.1"
1414
var Port int
1515
var Prefix string
1616
var rc = 0
@@ -25,14 +25,14 @@ type ServerHandler struct {
2525

2626
var handlers []ServerHandler
2727

28-
func addHandlerFunc(methods []string, pattern string, handlerFunc http.HandlerFunc) {
28+
func addHandlerFunc(methods []string, pattern string, f http.HandlerFunc) {
2929
h := ServerHandler{
3030
Methods: methods,
3131
Pattern: Prefix + pattern,
32-
Handler: handlerFunc,
32+
Handler: f,
3333
}
3434
handlers = append(handlers, h)
35-
http.HandleFunc(pattern, handlerFunc)
35+
http.HandleFunc(h.Pattern, f)
3636
}
3737

3838
func Bootstrap(port int, prefix string, tlsMode bool) {
@@ -84,7 +84,7 @@ func Bootstrap(port int, prefix string, tlsMode bool) {
8484
addHandlerFunc([]string{"GET"}, "unknowncontentenc", unknowncontentenc)
8585
addHandlerFunc([]string{"GET"}, "websocket", websocket)
8686

87-
//catchall
87+
//catchall. Matches everything that wasn't previously matched.
8888
http.HandleFunc("/", index)
8989

9090
var err error

0 commit comments

Comments
 (0)