Skip to content

Commit 28bb3f6

Browse files
authored
Merge pull request allanlei#26 from IndustriaTech/fix/readme-indetion
Fix indetion in the README (use sapces)
2 parents 41bb027 + 45b2b55 commit 28bb3f6

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

README.markdown

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,12 @@ from flask import Response
9595
@app.route('/package.zip', methods=['GET'], endpoint='zipball')
9696
def zipball():
9797
def generator():
98-
z = zipstream.ZipFile(mode='w', compression=ZIP_DEFLATED)
98+
z = zipstream.ZipFile(mode='w', compression=ZIP_DEFLATED)
9999

100-
z.write('/path/to/file')
100+
z.write('/path/to/file')
101101

102-
for chunk in z:
103-
yield chunk
102+
for chunk in z:
103+
yield chunk
104104

105105
response = Response(generator(), mimetype='application/zip')
106106
response.headers['Content-Disposition'] = 'attachment; filename={}'.format('files.zip')
@@ -110,8 +110,8 @@ def zipball():
110110

111111
@app.route('/package.zip', methods=['GET'], endpoint='zipball')
112112
def zipball():
113-
z = zipstream.ZipFile(mode='w', compression=ZIP_DEFLATED)
114-
z.write('/path/to/file')
113+
z = zipstream.ZipFile(mode='w', compression=ZIP_DEFLATED)
114+
z.write('/path/to/file')
115115

116116
response = Response(z, mimetype='application/zip')
117117
response.headers['Content-Disposition'] = 'attachment; filename={}'.format('files.zip')
@@ -124,8 +124,8 @@ def zipball():
124124
from django.http import StreamingHttpResponse
125125

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

130130
response = StreamingHttpResponse(z, content_type='application/zip')
131131
response['Content-Disposition'] = 'attachment; filename={}'.format('files.zip')

0 commit comments

Comments
 (0)