Temporary fix for vimeoWorkaround
This commit is contained in:
parent
3f79e9f858
commit
32d9285560
|
|
@ -749,6 +749,7 @@ function vimeoWorkaround(id, cb) {
|
||||||
var inner = function () {
|
var inner = function () {
|
||||||
var options = {
|
var options = {
|
||||||
host: "player.vimeo.com",
|
host: "player.vimeo.com",
|
||||||
|
port: 443,
|
||||||
path: "/video/" + id,
|
path: "/video/" + id,
|
||||||
headers: {
|
headers: {
|
||||||
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0",
|
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0",
|
||||||
|
|
@ -811,7 +812,7 @@ function vimeoWorkaround(id, cb) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
urlRetrieve(http, options, function (status, buffer) {
|
urlRetrieve(https, options, function (status, buffer) {
|
||||||
if (status !== 200) {
|
if (status !== 200) {
|
||||||
setImmediate(function () {
|
setImmediate(function () {
|
||||||
cb({});
|
cb({});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue