mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-04 16:09:05 +00:00
### **PR Type**
Bug fix
___
### **Description**
- Disable redirects for router reqwest client
___
### Diagram Walkthrough
```mermaid
flowchart LR
A["reqwest client builder"]
B["redirect policy: none"]
A -- "configure" --> B
```
<details> <summary><h3> File Walkthrough</h3></summary>
<table><thead><tr><th></th><th align="left">Relevant
files</th></tr></thead><tbody><tr><td><strong>Bug
fix</strong></td><td><table>
<tr>
<td>
<details>
<summary><strong>mod.rs</strong><dd><code>Disable automatic redirects
for router client</code>
</dd></summary>
<hr>
src/service/tls/mod.rs
<ul><li>Add <code>redirect(Policy::none())</code> to client builder<br>
<li> Prevent automatic redirect following for routing</ul>
</details>
</td>
<td><a
href="https://github.com/openobserve/openobserve/pull/10398/files#diff-5061e662a8899b7e00e5744bd72f808b28ac479a8921ac519f7409bffdc4438a">+2/-1</a>
</td>
</tr>
</table></td></tr></tr></tbody></table>
</details>
___