add some verbiage to body.
Change-Id: I1c6e6f61bcc23b9777e8bef140c5488bafe248f9
This commit is contained in:
parent
5de44ba4d6
commit
753a225f53
@ -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)
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user