Skip to content

fix(weixin): use CreateSafeHTTPClient for media downloads - #3324

Open
SashaMIT wants to merge 1 commit into
sipeed:mainfrom
SashaMIT:fix/weixin-media-safe-http
Open

fix(weixin): use CreateSafeHTTPClient for media downloads#3324
SashaMIT wants to merge 1 commit into
sipeed:mainfrom
SashaMIT:fix/weixin-media-safe-http

Conversation

@SashaMIT

@SashaMIT SashaMIT commented Aug 9, 2026

Copy link
Copy Markdown

Summary

Test plan

  • go test ./pkg/channels/weixin/ -count=1 (includes new redirect-to-private reject)
  • CI

Made with Cursor

Weixin CDN/remote media fetches used the plain iLink api.HttpClient, so
redirects could reach loopback/private hosts. Add a dedicated mediaClient
via CreateSafeHTTPClient and ValidateSafeHTTPURL before media GET/POST
(sibling of wecom sipeed#3323; leave iLink API client unchanged).
@github-actions

Copy link
Copy Markdown

This PR has had no activity for 7 days and has been marked as stale. If you are still working on it, please push an update or leave a comment; otherwise it will be closed automatically in 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant