Skip to content

Commit

Permalink
distinguish in the log message between calls and access logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Mancke committed Jun 21, 2016
1 parent 20d3c39 commit efeac40
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion composition/composition_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ func Test_CompositionHandler_PositiveCase(t *testing.T) {
r, _ := http.NewRequest("GET", "http://example.com", nil)
ch.ServeHTTP(resp, r)

expected := `<html>
expected := `<!DOCTYPE html>
<html>
<head>
</head>
Expand Down
2 changes: 1 addition & 1 deletion composition/content_merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (cntx *ContentMerge) GetHtml() ([]byte, error) {
return f.Execute(w, cntx.MetaJSON, executeFragment)
}

io.WriteString(w, "<html>\n <head>\n ")
io.WriteString(w, "<!DOCTYPE html>\n<html>\n <head>\n ")

for _, f := range cntx.Head {
if err := f.Execute(w, cntx.MetaJSON, executeFragment); err != nil {
Expand Down
3 changes: 2 additions & 1 deletion composition/content_merge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import (
func Test_ContentMerge_PositiveCase(t *testing.T) {
a := assert.New(t)

expected := `<html>
expected := `<!DOCTYPE html>
<html>
<head>
<page1-head/>
<page2-head/>
Expand Down
1 change: 1 addition & 0 deletions composition_example/expected_test_result.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/static/stylesheet.css"><link rel="stylesheet" href="/static/basic.css">
Expand Down

0 comments on commit efeac40

Please sign in to comment.