Le mirroring des dépôts vers Github est maintenant natif dans Gitlab (et donc Framagit). Merci de passer à la fonction native pour que nous puissions couper notre solution maison. Détails sur https://docs.gitlab.com/ee/workflow/repository_mirroring.html#pushing-to-a-remote-repository (pensez à supprimer le webhook de notre solution maison).

Commit 92b02f2b by yPhil

Bugfix: Sent headers (req.setHeader())

parent 37e7cf4a
......@@ -45,11 +45,15 @@ function getFeed (urlfeed, callback) {
// var req = request (urlfeed);
var req = request(options);
var req = request (urlfeed);
// var req = request(options);
var feedparser = new FeedParser ();
var feedItems = [];
req.setHeader('user-agent', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36');
req.setHeader('accept', 'text/html,application/xhtml+xml');
req.on ('response', function (res) {
var stream = this;
if (res && typeof res !== 'undefined' && res.statusCode === 200 && res.headers['content-type'] && res.headers['content-type'].includes('xml')) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment