소스 검색

Updated "POST /containers/create" to return the right Content-Type.

David Sissitka 12 년 전
부모
커밋
f6b56e996d
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      api.go

+ 2 - 1
api.go

@@ -547,8 +547,9 @@ func postContainersCreate(srv *Server, version float64, w http.ResponseWriter, r
 	if err != nil {
 		return err
 	}
+	w.Header().Set("Content-Type", "application/json")
 	w.WriteHeader(http.StatusCreated)
-	writeJSON(w, b)
+	w.Write(b)
 	return nil
 }