@@ -261,10 +261,19 @@ async function downloadSubscription(req, res) {
261261 $arguments . flowUrl ,
262262 ) ;
263263 if ( flowInfo ) {
264- res . set (
265- 'subscription-userinfo' ,
266- normalizeFlowHeader ( flowInfo ) ,
267- ) ;
264+ const headers = normalizeFlowHeader ( flowInfo , true ) ;
265+ if ( headers ?. [ 'subscription-userinfo' ] ) {
266+ res . set (
267+ 'subscription-userinfo' ,
268+ headers [ 'subscription-userinfo' ] ,
269+ ) ;
270+ }
271+ if ( headers ?. [ 'profile-web-page-url' ] ) {
272+ res . set (
273+ 'profile-web-page-url' ,
274+ headers [ 'profile-web-page-url' ] ,
275+ ) ;
276+ }
268277 }
269278 }
270279 } catch ( err ) {
@@ -296,12 +305,23 @@ async function downloadSubscription(req, res) {
296305 } else {
297306 subUserInfo = sub . subUserinfo ;
298307 }
299- res . set (
300- 'subscription-userinfo' ,
301- normalizeFlowHeader (
302- [ subUserInfo , flowInfo ] . filter ( ( i ) => i ) . join ( ';' ) ,
303- ) ,
308+
309+ const headers = normalizeFlowHeader (
310+ [ subUserInfo , flowInfo ] . filter ( ( i ) => i ) . join ( ';' ) ,
311+ true ,
304312 ) ;
313+ if ( headers ?. [ 'subscription-userinfo' ] ) {
314+ res . set (
315+ 'subscription-userinfo' ,
316+ headers [ 'subscription-userinfo' ] ,
317+ ) ;
318+ }
319+ if ( headers ?. [ 'profile-web-page-url' ] ) {
320+ res . set (
321+ 'profile-web-page-url' ,
322+ headers [ 'profile-web-page-url' ] ,
323+ ) ;
324+ }
305325 }
306326
307327 if ( platform === 'JSON' ) {
@@ -573,10 +593,19 @@ async function downloadCollection(req, res) {
573593 . filter ( ( i ) => i )
574594 . join ( '; ' ) ;
575595 if ( subUserInfo ) {
576- res . set (
577- 'subscription-userinfo' ,
578- normalizeFlowHeader ( subUserInfo ) ,
579- ) ;
596+ const headers = normalizeFlowHeader ( subUserInfo , true ) ;
597+ if ( headers ?. [ 'subscription-userinfo' ] ) {
598+ res . set (
599+ 'subscription-userinfo' ,
600+ headers [ 'subscription-userinfo' ] ,
601+ ) ;
602+ }
603+ if ( headers ?. [ 'profile-web-page-url' ] ) {
604+ res . set (
605+ 'profile-web-page-url' ,
606+ headers [ 'profile-web-page-url' ] ,
607+ ) ;
608+ }
580609 }
581610 if ( platform === 'JSON' ) {
582611 if ( resultFormat === 'nezha' ) {
0 commit comments