Skip to content
Snippets Groups Projects
Commit 55b64f3a authored by Isabelle Josephine Karal's avatar Isabelle Josephine Karal :mushroom:
Browse files

Fix: Überschrift Änderung Hallo zu Hi

parent e481fad4
Branches feature/update-title main
No related tags found
No related merge requests found
Pipeline #82284 passed
Pipeline: infra-management

#82285

    ......@@ -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( "Hello World!" )
    return c.SendString( "Hi World!" )
    }
    data := indexHtmlData{
    ......
    ......@@ -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, "Hello World!", bodyContent )
    assert.Equal( t, "Hi World!", bodyContent )
    }
    ......
    ......@@ -10,7 +10,7 @@ const indexHtml = `
    <title>Webservice</title>
    </head>
    <body>
    <h1 style="color: {{ .Color }}">Hello World, again!</h1>
    <h1 style="color: {{ .Color }}">Hi World, again!</h1>
    <p>Version: {{ .Version }}</p>
    </body>
    </html>
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment