@@ -9,7 +9,7 @@ use std::sync::LazyLock;
99use futures_lite:: FutureExt ;
1010use hyper:: { header:: HeaderValue , Body , Request , Response } ;
1111use log:: { info, warn} ;
12- use redlib:: client:: { canonical_path, proxy, rate_limit_check, CLIENT } ;
12+ use redlib:: client:: { canonical_path, proxy, rate_limit_check, MEDIA_CLIENT } ;
1313use redlib:: server:: { self , RequestExt } ;
1414use redlib:: utils:: { error, redirect, ThemeAssets } ;
1515use redlib:: { config, duplicates, headers, instance_info, post, search, settings, subreddit, user} ;
@@ -436,7 +436,7 @@ pub async fn proxy_commit_info() -> Result<Response<Body>, String> {
436436#[ cached( time = 600 ) ]
437437async fn fetch_commit_info ( ) -> String {
438438 // wreq uses http v1.x: pass URL as &str and call .send().await, then .bytes().await
439- let bytes = CLIENT
439+ let bytes = MEDIA_CLIENT
440440 . get ( "https://github.com/redlib-org/redlib/commits/main.atom" )
441441 . send ( )
442442 . await
@@ -460,7 +460,7 @@ pub async fn proxy_instances() -> Result<Response<Body>, String> {
460460#[ cached( time = 600 ) ]
461461async fn fetch_instances ( ) -> String {
462462 // wreq uses http v1.x: pass URL as &str and call .send().await, then .bytes().await
463- let bytes = CLIENT
463+ let bytes = MEDIA_CLIENT
464464 . get ( "https://raw.githubusercontent.com/redlib-org/redlib-instances/refs/heads/main/instances.json" )
465465 . send ( )
466466 . await
0 commit comments