54
54
self.store.put_archive(self.path[0])
55
55
self.send_response(httplib.CREATED)
59
58
httplib.BAD_REQUEST, reason=error.__doc__)
62
60
# This expected path is /archive/archive_id/message_id.
64
62
put_input = self.environ['wsgi.input']
65
63
message = put_input.read(int(self.environ['CONTENT_LENGTH']))
66
64
self.store.put_message(self.path[0], self.path[1], message)
67
65
self.send_response(httplib.CREATED)
70
67
self.send_response(httplib.BAD_REQUEST)
74
71
"""Change a message on POST."""