diff --git a/treq/response.py b/treq/response.py index cf32999..5f3b05b 100644
| 34 | 34 | self.headers = CaseInsensitiveDict(( |
|---|---|---|
| 35 | 35 | (header, ', '.join(values)) for header, values in |
| 36 | 36 | response.headers.getAllRawHeaders())) |
| 37 | self.encoding = get_encoding_from_headers(self.headers) |
|
| 37 | self.encoding = get_encoding_from_headers(self.headers) or "latin-1" | |
| 38 | 38 | |
| 39 | 39 | @property |
| 40 | 40 | def content(self): |
diff --git a/treq/test/test_treq_integration.py b/treq/test/test_treq_integration.py index c9dbfbc..6bdef27 100644
| 15 | 15 | |
|---|---|---|
| 16 | 16 | print '---' |
| 17 | 17 | print response.status_code |
| 18 | text = yield response.text | |
| 19 | print text | |
| 18 | if response._method == "GET": | |
| 19 | text = yield response.text | |
| 20 | print text | |
| 20 | 21 | print '---' |