Ticket #2242 (new defect)
Opened 4 years ago
twisted.web2.static.File sucks with regards to overriding it's content type
| Reported by: | dreid | Owned by: | jknight |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | web2 | Keywords: | |
| Cc: | Branch: | ||
| Author: | Launchpad Bug: |
Description
File defines a type attribute in the class body but uses _type everywhere internally. type is ambiguous and should be contentType.
contentType should be used in all cases in stead of looking it up or using the defaultType.
init should also take a contentType keyword argument.
Note: See
TracTickets for help on using
tickets.
