Opened 12 years ago
Closed 12 years ago
Last modified 12 years ago
#12129 closed Patch - Bug Fix (fixed)
Mime type set incorrectly by mythweb/modules/video/stream.php
| Reported by: | Owned by: | Karl Egly | |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.26.2 |
| Component: | Plugin - MythWeb | Version: | Unspecified |
| Severity: | medium | Keywords: | mythweb videos stream.php |
| Cc: | Ticket locked: | no |
Description
When trying to view a movie ( not recorded TV ) via mythweb, I am getting invalid content type. In looking at the header it is being set as: Content-Type: applicatoin/octet-stream
This is misspelled and should read: application/octet-stream . This is on line 52 of modules/video/stream.php .
Also, it is ALWAYS setting it to the default mime type no matter what the file extension is.
Line 23 of modules/video/stream.php needs to be changed as follows: From: switch (substr($fname, strrpos($fname, '.'))) { To : switch (substr($fname, strrpos($fname, '.')+1)) {
I have locally modified my files and this module now works correctly. Please fix, so I do not have to re-apply my fixes every release.
Attachments (1)
Change History (5)
by , 12 years ago
| Attachment: | stream.php added |
|---|
comment:1 by , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:4 by , 12 years ago
| Milestone: | unknown → 0.26.2 |
|---|---|
| Owner: | changed from to |
| Type: | Bug Report - General → Patch - Bug Fix |

Patched mythweb/modules/video/stream.php