':param fobj: File object to read object\'s content from.
:param account: The object\'s account.
:param container: The object\'s container.
:param obj: The object.
:param headers: Headers to send with request, defaults ot empty dict.
:raises UnexpectedResponse: Exception raised when requests fail
to get a response with an acceptable status
:raises Exception: Exception is raised when code fails in an
unexpected way.'

def upload_object(self, fobj, account, container, obj, headers=None):

    headers = dict((headers or {}))
    if ('Content-Length' not in headers):
        headers['Transfer-Encoding'] = 'chunked'
    path = self.make_path(account, container, obj)
    self.make_request('PUT', path, headers, (2,), fobj)
