kopia lustrzana https://gitlab.com/rysiekpl/libresilient
dnslink-ipfs: contentType guessing bugfix
rodzic
3b25ce6145
commit
251739fe1a
|
@ -103,7 +103,7 @@
|
|||
* TODO: this needs a fix
|
||||
*/
|
||||
var contentType = '';
|
||||
switch (dnslinkAddr.split('.', -1)[1].toLowerCase()) {
|
||||
switch (dnslinkAddr.split('.').pop().toLowerCase()) {
|
||||
case 'html':
|
||||
case 'htm':
|
||||
contentType = 'text/html';
|
||||
|
|
Ładowanie…
Reference in New Issue