[PR #472] [MERGED] Make playground work with apps behind a proxy with root_path #563

Closed
opened 2026-02-16 01:15:25 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langserve/pull/472
Author: @nat-n
Created: 2/20/2024
Status: Merged
Merged: 2/27/2024
Merged by: @eyurtsev

Base: mainHead: feature/respect_root_path


📝 Commits (2)

  • e36ed57 Make playground work with apps behind a proxy with root_path
  • 18bd75f Merge branch 'main' into feature/respect_root_path

📊 Changes

2 files changed (+44 additions, -8 deletions)

View changed files

📝 langserve/api_handler.py (+8 -8)
📝 tests/unit_tests/test_server_client.py (+36 -0)

📄 Description

Make the playground respect the root_path from the request scope.

Also streamline some related code in APIHandler around normalizing trailing slashes on paths.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langserve/pull/472 **Author:** [@nat-n](https://github.com/nat-n) **Created:** 2/20/2024 **Status:** ✅ Merged **Merged:** 2/27/2024 **Merged by:** [@eyurtsev](https://github.com/eyurtsev) **Base:** `main` ← **Head:** `feature/respect_root_path` --- ### 📝 Commits (2) - [`e36ed57`](https://github.com/langchain-ai/langserve/commit/e36ed575e08e5c67776c950848a6aee55fa1ea50) Make playground work with apps behind a proxy with root_path - [`18bd75f`](https://github.com/langchain-ai/langserve/commit/18bd75f4fd70b6c5fd05c3bc5c5e37a6a7821079) Merge branch 'main' into feature/respect_root_path ### 📊 Changes **2 files changed** (+44 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `langserve/api_handler.py` (+8 -8) 📝 `tests/unit_tests/test_server_client.py` (+36 -0) </details> ### 📄 Description Make the playground respect the [root_path](https://fastapi.tiangolo.com/advanced/behind-a-proxy/) from the request scope. Also streamline some related code in APIHandler around normalizing trailing slashes on paths. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:15:25 -05:00
yindo closed this issue 2026-02-16 01:15:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langserve#563