Commit a1fa9004 authored by Stavros Sachtouris's avatar Stavros Sachtouris

Fix HTTP headers in image member add

Refs: #5115
parent cff5f549
......@@ -174,7 +174,7 @@ class ImageClient(Client):
:param member: (str) user to allow access to current user's images
"""
path = path4url('images', image_id, 'members', member)
self.set_header('Content-Length', len(member))
self.set_header('Content-Length', 0)
r = self.put(path, success=204)
return r.headers
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment