|
45 | 45 | "suffix_map", "encodings_map", "types_map", "common_types" |
46 | 46 | ] |
47 | 47 |
|
48 | | -knownfiles = [ |
49 | | - "/etc/mime.types", |
50 | | - "/etc/httpd/mime.types", # Mac OS X |
51 | | - "/etc/httpd/conf/mime.types", # Apache |
52 | | - "/etc/apache/mime.types", # Apache 1 |
53 | | - "/etc/apache2/mime.types", # Apache 2 |
54 | | - "/usr/local/etc/httpd/conf/mime.types", |
55 | | - "/usr/local/lib/netscape/mime.types", |
56 | | - "/usr/local/etc/httpd/conf/mime.types", # Apache 1.2 |
57 | | - "/usr/local/etc/mime.types", # Apache 1.3 |
58 | | - ] |
| 48 | +# This fixes an issue when running on the Arm macs with iPad compatibility mode. No change on iOS (all these files are unreadable anyway) |
| 49 | +if (sys.platform == "darwin"): |
| 50 | + knownfiles = [] |
| 51 | +else: |
| 52 | + knownfiles = [ |
| 53 | + "/etc/mime.types", |
| 54 | + "/etc/httpd/mime.types", # Mac OS X |
| 55 | + "/etc/httpd/conf/mime.types", # Apache |
| 56 | + "/etc/apache/mime.types", # Apache 1 |
| 57 | + "/etc/apache2/mime.types", # Apache 2 |
| 58 | + "/usr/local/etc/httpd/conf/mime.types", |
| 59 | + "/usr/local/lib/netscape/mime.types", |
| 60 | + "/usr/local/etc/httpd/conf/mime.types", # Apache 1.2 |
| 61 | + "/usr/local/etc/mime.types", # Apache 1.3 |
| 62 | + ] |
59 | 63 |
|
60 | 64 | inited = False |
61 | 65 | _db = None |
|
0 commit comments