Commit 76da79e0 authored by Max Richter's avatar Max Richter

Merge branch 'dev' into 'master'

Update api/rest/main.go

See merge request !36
parents 371d0076 71128434
Pipeline #1866 passed with stages
in 3 minutes and 2 seconds
......@@ -37,7 +37,7 @@ func Init() {
// Create a new server
srv := &http.Server{
Handler: r,
Addr: "0.0.0.0" + getPort(),
Addr: "0.0.0.0:" + getPort(),
// Good practice: enforce timeouts for servers you create!
WriteTimeout: 5 * time.Second,
ReadTimeout: 5 * time.Second,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment