Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: This StreamingHttpResponse instance has no content attribute #50

Closed
pix666 opened this issue Jan 20, 2015 · 2 comments
Closed
Labels

Comments

@pix666
Copy link

pix666 commented Jan 20, 2015

Middleware breaks loading some images with exception AttributeError.

getattr() helps:

# model_factory.py

def body(self):
        body = ''
        content_type, char_set = _parse_content_type(self.response.get('Content-Type', ''))
        # content = self.response.content
        content = getattr(self.response, 'content', '')
@mtford90 mtford90 added the bug label Jan 25, 2015
@mtford90
Copy link
Collaborator

Huh... cheers. I'll add this in the next update

@mtford90
Copy link
Collaborator

mtford90 commented Apr 8, 2015

done

@mtford90 mtford90 closed this as completed Apr 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants