Changeset 0a15a91bd6ea5f7bad6b35396fc28935c1da77db
- Timestamp:
- 03/02/07 01:55:55
(2 years ago)
- Author:
- KRKeegan <KRKeegan>
- git-committer:
- KRKeegan <KRKeegan> 1172822155 +0000
- git-parent:
[5b4f0d39ad17dc62821dbf1e770522f2b85963f9]
- git-author:
- KRKeegan <KRKeegan> 1172822155 +0000
- Message:
--
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r391f266 |
r0a15a91 |
|
| 17 | 17 | def SendFile(self, handler, container, name): |
|---|
| 18 | 18 | |
|---|
| 19 | | #cheep hack |
|---|
| | 19 | #No longer a 'cheep' hack :p |
|---|
| 20 | 20 | if handler.headers.getheader('Range') and not handler.headers.getheader('Range') == 'bytes=0-': |
|---|
| 21 | | handler.send_response(404) |
|---|
| | 21 | handler.send_response(206) |
|---|
| | 22 | handler.send_header('Connection', 'close') |
|---|
| | 23 | handler.send_header('Content-Type', 'video/x-tivo-mpeg') |
|---|
| | 24 | handler.send_header('Transfer-Encoding', 'chunked') |
|---|
| | 25 | handler.send_header('Server', 'TiVo Server/1.4.257.475') |
|---|
| 22 | 26 | handler.end_headers() |
|---|
| 23 | 27 | return |
|---|