-
Notifications
You must be signed in to change notification settings - Fork 6
MIME type detection seems to break on vidly links #21
Comments
Interesting. This almost seems like a bug in var request = require('request');
request({
method: 'HEAD',
url: "https://vid.ly/m9n7s1?content=video&format=webm",
followAllRedirects: true
},
function(err, res) {
if (err) {
console.error(err);
return;
}
console.log({
href: res.request.href,
contentType: res.headers['content-type']
});
}
); However, if you remove the I tried updated |
Here's what it looks like when run with
vs. when it doesn't hang:
|
Filed upstream: request/request#1649 |
Looks like this fix should be merged into master now. request/request#1651 |
They haven't published this yet, still at 2.58.1. Once they republish, I'll update. |
I noticed that when requesting the mimetype for a vidly link (such as https://vid.ly/m9n7s1?content=video&format=webm, node-hubble seems to hang. I think this is due to the fact that the vidly links are shortened and are redirected to a longer link which actually contains the video.
The text was updated successfully, but these errors were encountered: