Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix: remove x-request-id from headers before connector calls (#2182)
BallaNitesh680505f21ad0
diff --git a/crates/router/src/services/api.rs b/crates/router/src/services/api.rsindex dc25d56786..b10feebe16 100644--- a/crates/router/src/services/api.rs+++ b/crates/router/src/services/api.rs@@ -453,17 +453,7 @@ pub async fn send_request(request.certificate_key,)?;- let mut headers_with_request_id = request.headers;- headers_with_request_id.insert((- crate::headers::X_REQUEST_ID.to_string(),- state- .api_client- .get_request_id()- .ok_or(errors::ApiClientError::InternalServerErrorReceived)- .into_report()?- .into(),- ));- let headers = headers_with_request_id.construct_header_map()?;+ let headers = request.headers.construct_header_map()?;let metrics_tag = router_env::opentelemetry::KeyValue {key: consts::METRICS_HOST_TAG_NAME.into(),value: url.host_str().unwrap_or_default().to_string().into(),