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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant