dm
/
vain
forked from sm/vain
1
0
Fork 0

add some verbiage to body.

Change-Id: I1c6e6f61bcc23b9777e8bef140c5488bafe248f9
This commit is contained in:
Stephen McQuay 2016-03-02 22:07:06 -08:00
parent 5de44ba4d6
commit 753a225f53
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ func TestAdd(t *testing.T) {
if _, err := io.Copy(buf, resp.Body); err != nil {
t.Errorf("couldn't read content from server: %v", err)
}
if got, want := strings.Count(buf.String(), "meta"), 1; got != want {
if got, want := strings.Count(buf.String(), "<meta"), 1; got != want {
t.Errorf("did not find all the tags I need; got %d, want %d", got, want)
}

View File

@ -28,7 +28,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) {
for _, p := range s.storage.All() {
fmt.Fprintf(w, "%s\n", p)
}
fmt.Fprintf(w, "</head>\n</html>\n")
fmt.Fprintf(w, "</head>\n<body><p>go tool metadata in head</p>\n</html>\n")
case "POST":
if req.URL.Path == "/" {
http.Error(w, fmt.Sprintf("invalid path %q", req.URL.Path), http.StatusBadRequest)