Skip to content

Commit 41bb027

Browse files
authored
Merge pull request allanlei#24 from marcosdiez/master
Fix documentation (Django section)
2 parents b056389 + 0d3bed3 commit 41bb027

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Coverage Status](https://coveralls.io/repos/allanlei/python-zipstream/badge.png)](https://coveralls.io/r/allanlei/python-zipstream)
66

77
zipstream.py is a zip archive generator based on python 3.3's zipfile.py. It was created to
8-
generate a zip file generator for streaming (ie web apps). This is beneficial for when you
8+
generate a zip file generator for streaming (ie web apps). This is beneficial for when you
99
want to provide a downloadable archive of a large collection of regular files, which would be infeasible to
1010
generate the archive prior to downloading or of a very large file that you do not want to store entirely on disk or on memory.
1111

@@ -127,7 +127,7 @@ def zipball(request):
127127
z = zipstream.ZipFile(mode='w', compression=ZIP_DEFLATED)
128128
z.write('/path/to/file')
129129

130-
response = StreamingHttpResponse(z, mimetype='application/zip')
130+
response = StreamingHttpResponse(z, content_type='application/zip')
131131
response['Content-Disposition'] = 'attachment; filename={}'.format('files.zip')
132132
return response
133133
```
@@ -145,7 +145,7 @@ def GET(self):
145145
```
146146

147147
## Running tests
148-
148+
149149
With python version > 2.6, just run the following command: `python -m unittest discover`
150150

151151
Alternatively, you can use `nose`.

0 commit comments

Comments
 (0)