Show More
@@ -87,7 +87,7 b' class wsgirequest(object):' | |||||
87 | headers = headers.items() |
|
87 | headers = headers.items() | |
88 | headers.append(('Content-type', type)) |
|
88 | headers.append(('Content-type', type)) | |
89 | if filename: |
|
89 | if filename: | |
90 |
headers.append(('Content-disposition', ' |
|
90 | headers.append(('Content-disposition', 'inline; filename=%s' % | |
91 | filename)) |
|
91 | filename)) | |
92 | if length: |
|
92 | if length: | |
93 | headers.append(('Content-length', str(length))) |
|
93 | headers.append(('Content-length', str(length))) |
@@ -1,7 +1,7 b'' | |||||
1 | 200 Script output follows |
|
1 | 200 Script output follows | |
2 | content-type: text/plain |
|
2 | content-type: text/plain | |
3 | content-length: 157 |
|
3 | content-length: 157 | |
4 |
content-disposition: |
|
4 | content-disposition: inline; filename=sometext.txt | |
5 |
|
5 | |||
6 | This is just some random text |
|
6 | This is just some random text | |
7 | that will go inside the file and take a few lines. |
|
7 | that will go inside the file and take a few lines. |
General Comments 0
You need to be logged in to leave comments.
Login now