mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-07 09:00:47 +00:00
7 lines
292 B
JavaScript
7 lines
292 B
JavaScript
gopeed.events.onStart(async function (ctx) {
|
|
gopeed.logger.info("url", ctx.task.meta.req.url);
|
|
await ctx.task.meta.req.setUrl("https://github.com");
|
|
await ctx.task.meta.req.setHeaders({ "X-Gopeed-Test": "on-start" });
|
|
await ctx.task.meta.req.putLabel('modified', 'true');
|
|
});
|