Skip to content

πŸ™Œ OpenHands: AI-Driven Development

[Bug]: Fixing next page param extraction for app installation repos reponse (#5687)

Rohit Malhotra3db118f3d954
diff --git a/openhands/server/routes/github.py b/openhands/server/routes/github.py
index 273c3fe6cc..99d299ab1f 100644
--- a/openhands/server/routes/github.py
+++ b/openhands/server/routes/github.py
@@ -52,5 +52,11 @@ def get_github_repositories(
detail=f'Error fetching repositories: {str(e)}',
)
- # Return the JSON response
- return JSONResponse(content=response.json())
+ # Create response with the JSON content
+ json_response = JSONResponse(content=response.json())
+
+ # Forward the Link header if it exists
+ if 'Link' in response.headers:
+ json_response.headers['Link'] = response.headers['Link']
+
+ return json_response