1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00

[api]fix a bug

This commit is contained in:
poetwang
2012-08-23 01:03:55 +08:00
parent 981ff56486
commit 724c5eddb6

View File

@@ -284,9 +284,10 @@ class RepoDirPathView(ResponseMixin, View):
old_oid = request.GET.get('oid', None)
if old_oid and old_oid == dir_id :
response = HttpResponse(json.dumps("uptodate"), status=200,
content_type=json_content_type)
response["oid"] = dir_id
return HttpResponse(json.dumps("uptodate"), status=200,
content_type=json_content_type)
return response
else:
return get_dir_entrys_by_id(request, dir_id)