Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
app-service
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Isabelle Josephine Karal
app-service
Commits
55b64f3a
Commit
55b64f3a
authored
1 month ago
by
Isabelle Josephine Karal
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Überschrift Änderung Hallo zu Hi
parent
e481fad4
Branches
feature/update-title
main
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#82284
passed
1 month ago
Stage: test
Stage: build
Stage: publish
Stage: deploy
Pipeline: infra-management
#82285
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
routing/routes.go
+1
-1
1 addition, 1 deletion
routing/routes.go
routing/routes_test.go
+1
-1
1 addition, 1 deletion
routing/routes_test.go
routing/templates.go
+1
-1
1 addition, 1 deletion
routing/templates.go
with
3 additions
and
3 deletions
routing/routes.go
+
1
−
1
View file @
55b64f3a
...
...
@@ -50,7 +50,7 @@ func SetRoutes( router *f.App, config *configuration.Config, store state.Store,
acceptHeader
:=
strings
.
Join
(
headers
[
"Accept"
],
" "
)
if
!
strings
.
Contains
(
acceptHeader
,
"html"
)
{
c
.
Set
(
"Content-Type"
,
"text/plain; charset=utf-8"
)
return
c
.
SendString
(
"H
ello
World!"
)
return
c
.
SendString
(
"H
i
World!"
)
}
data
:=
indexHtmlData
{
...
...
This diff is collapsed.
Click to expand it.
routing/routes_test.go
+
1
−
1
View file @
55b64f3a
...
...
@@ -108,7 +108,7 @@ func TestIndexRoute( t *testing.T ){
res
,
_
=
router
.
Test
(
req
,
-
1
)
bodyContent
,
err
=
bodyToString
(
&
res
.
Body
)
assert
.
Nil
(
t
,
err
)
assert
.
Equal
(
t
,
"H
ello
World!"
,
bodyContent
)
assert
.
Equal
(
t
,
"H
i
World!"
,
bodyContent
)
}
...
...
This diff is collapsed.
Click to expand it.
routing/templates.go
+
1
−
1
View file @
55b64f3a
...
...
@@ -10,7 +10,7 @@ const indexHtml = `
<title>Webservice</title>
</head>
<body>
<h1 style="color: {{ .Color }}">H
ello
World, again!</h1>
<h1 style="color: {{ .Color }}">H
i
World, again!</h1>
<p>Version: {{ .Version }}</p>
</body>
</html>
...
...
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