1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 16:36:15 +00:00

return full url with domain name (#3383)

This commit is contained in:
Leo
2019-04-28 17:46:58 +08:00
committed by lian
parent 0420331a9c
commit 278c300079

View File

@@ -72,4 +72,4 @@ class UserAvatarView(APIView):
error_msg = 'Internal Server Error'
return api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, error_msg)
return Response({'avatar_url': avatar_url})
return Response({'avatar_url': request.build_absolute_uri(avatar_url)})