mirror of https://github.com/calzoneman/sync.git
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 options = {
|
||||
host: "player.vimeo.com",
|
||||
port: 443,
|
||||
path: "/video/" + id,
|
||||
headers: {
|
||||
"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) {
|
||||
setImmediate(function () {
|
||||
cb({});
|
||||
|
|
Loading…
Reference in New Issue