Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Assignment 1
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aksel Baardsen
Assignment 1
Commits
2cac473f
Commit
2cac473f
authored
5 years ago
by
Aksel Baardsen
Browse files
Options
Downloads
Patches
Plain Diff
added correct comments
parent
0ef9d660
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
handler/country.go
+1
-1
1 addition, 1 deletion
handler/country.go
handler/diag.go
+1
-0
1 addition, 0 deletions
handler/diag.go
handler/species.go
+1
-0
1 addition, 0 deletions
handler/species.go
with
3 additions
and
1 deletion
handler/country.go
+
1
−
1
View file @
2cac473f
...
...
@@ -28,7 +28,7 @@ func Chandler(w http.ResponseWriter, r *http.Request) {
log
.
Fatal
(
err
)
}
}
else
{
//
need to check error for content when setting header (pkg.C
orrect
H
eader
)
//
return with c
orrect
h
eader
pkg
.
HttpError
(
w
,
err
)
}
}
This diff is collapsed.
Click to expand it.
handler/diag.go
+
1
−
0
View file @
2cac473f
...
...
@@ -21,6 +21,7 @@ func Dhandler(w http.ResponseWriter, r *http.Request) {
log
.
Fatal
(
err
)
}
}
else
{
// return with correct header
pkg
.
HttpError
(
w
,
err
)
}
}
This diff is collapsed.
Click to expand it.
handler/species.go
+
1
−
0
View file @
2cac473f
...
...
@@ -23,6 +23,7 @@ func Shandler(w http.ResponseWriter, r *http.Request) {
log
.
Fatal
(
err
)
}
}
else
{
// return with correct header
pkg
.
HttpError
(
w
,
err
)
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment