Include a response for HTML form POSTs.
authorroot <root@pithos.dev.grnet.gr>
Fri, 3 Feb 2012 12:00:43 +0000 (14:00 +0200)
committerroot <root@pithos.dev.grnet.gr>
Fri, 3 Feb 2012 12:00:43 +0000 (14:00 +0200)
docs/source/devguide.rst
pithos/api/functions.py

index 3df27dc..0e00b23 100644 (file)
@@ -1004,7 +1004,7 @@ The ``POST`` method can also be used for creating an object via a standard HTML
     <input type="submit">
   </form>
 
-This will create/override the object with the given name, as if using ``PUT``. The ``Content-Type`` of the object will be set to the value of the corresponding header sent in the part of the request containing the data (usually, automatically handled by the browser). Metadata, sharing and other object attributes can not be set this way.
+This will create/override the object with the given name, as if using ``PUT``. The ``Content-Type`` of the object will be set to the value of the corresponding header sent in the part of the request containing the data (usually, automatically handled by the browser). Metadata, sharing and other object attributes can not be set this way. The response will contain the object's ETag.
 
 ==========================  ===============================
 Reply Header Name           Value
index 30581b2..22175b6 100644 (file)
@@ -917,6 +917,7 @@ def object_write_form(request, v_account, v_container, v_object):
     response = HttpResponse(status=201)
     response['ETag'] = meta['ETag']
     response['X-Object-Version'] = version_id
+    response.content = meta['ETag']
     return response
 
 @api_method('COPY', format_allowed=True)