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
71128434
Commit
71128434
authored
Jun 04, 2020
by
Max Richter
Browse files
Update api/rest/main.go
parent
b93d3870
Pipeline
#1865
passed with stages
in 2 minutes and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
api/rest/main.go
View file @
71128434
...
...
@@ -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