This repository was archived by the owner on Apr 12, 2025. It is now read-only.
File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,8 @@ pub struct PlexContext {
161
161
pub container_size : Option < i32 > ,
162
162
#[ salvo( extract( rename = "X-Plex-Container-Start" ) ) ]
163
163
pub container_start : Option < i32 > ,
164
+ #[ salvo( extract( rename = "x-plex-http-pipeline" ) ) ]
165
+ pub http_pipeline : Option < String > ,
164
166
#[ serde( default = "default_as_false" , deserialize_with = "bool_from_int" ) ]
165
167
#[ salvo( extract( rename = "includeCollections" ) ) ]
166
168
pub include_collections : bool ,
Original file line number Diff line number Diff line change @@ -377,6 +377,8 @@ impl PlexClient {
377
377
) ;
378
378
}
379
379
380
+ // let mut params = params.clone();
381
+ // params.forwarded_for = Some("182.32.122.20".to_string());
380
382
if let Some ( i) = params. clone ( ) . forwarded_for . clone ( ) {
381
383
headers. insert (
382
384
FORWARDED ,
@@ -506,6 +508,13 @@ impl PlexClient {
506
508
) ;
507
509
}
508
510
511
+ if let Some ( i) = params. clone ( ) . http_pipeline . clone ( ) {
512
+ headers. insert (
513
+ "x-plex-http-pipeline" ,
514
+ header:: HeaderValue :: from_str ( i. as_str ( ) ) . unwrap ( ) ,
515
+ ) ;
516
+ }
517
+
509
518
if let Some ( i) = params. clone ( ) . provider_version . clone ( ) {
510
519
headers. insert (
511
520
"X-Plex-Provider-Version" ,
You can’t perform that action at this time.
0 commit comments