Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fabian Vitt
good2go
Commits
76da79e0
Commit
76da79e0
authored
Jun 04, 2020
by
Max Richter
Browse files
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
api/rest/main.go
View file @
76da79e0
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment