From 955f2b57fe22e5c822cbf73025b5211657c9343d Mon Sep 17 00:00:00 2001 From: poetwang Date: Tue, 21 Aug 2012 20:45:16 +0800 Subject: [PATCH] [api] fix a bug --- api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/views.py b/api/views.py index 1dd66ac0c1..b93b3e05eb 100644 --- a/api/views.py +++ b/api/views.py @@ -284,7 +284,7 @@ class RepoDirPathView(ResponseMixin, View): old_oid = request.GET.get('oid', None) if old_oid and old_oid == dir_id : - return HttpResponse(json.dumps("uptodate"), status=304, + return HttpResponse(json.dumps("uptodate"), status=200, content_type=json_content_type) else: return get_dir_entrys_by_id(request, dir_id)