[PR #181] [MERGED] fix: cobr unmarshal map[string]any to map[any]any, feat: add tests fo… #352

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

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/181
Author: @Yeuoly
Created: 4/8/2025
Status: Merged
Merged: 4/8/2025
Merged by: @Yeuoly

Base: mainHead: fix/cbor-unmarshaling


📝 Commits (2)

  • 36e7a10 fix: cobr unmarshal map[string]any to map[any]any, feat: add tests for redirecting traffic with path style and refactor redirect request logic
  • 26b61c3 refactor: use random port for simulation server in redirect traffic test and add server readiness wait

📊 Changes

6 files changed (+168 additions, -21 deletions)

View changed files

📝 internal/cluster/redirect.go (+21 -16)
📝 internal/cluster/redirect_test.go (+66 -2)
📝 internal/service/endpoint.go (+1 -1)
📝 internal/service/endpoint_test.go (+22 -0)
📝 internal/utils/parser/cbor.go (+22 -2)
internal/utils/parser/cbor_test.go (+36 -0)

📄 Description

…r redirecting traffic with path style and refactor redirect request logic

Fixes:
image


🔄 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/langgenius/dify-plugin-daemon/pull/181 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 4/8/2025 **Status:** ✅ Merged **Merged:** 4/8/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `fix/cbor-unmarshaling` --- ### 📝 Commits (2) - [`36e7a10`](https://github.com/langgenius/dify-plugin-daemon/commit/36e7a101691647069d771158db37524d097cf3ff) fix: cobr unmarshal map[string]any to map[any]any, feat: add tests for redirecting traffic with path style and refactor redirect request logic - [`26b61c3`](https://github.com/langgenius/dify-plugin-daemon/commit/26b61c351780f1dccc8d231b6bdf89458a74d189) refactor: use random port for simulation server in redirect traffic test and add server readiness wait ### 📊 Changes **6 files changed** (+168 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `internal/cluster/redirect.go` (+21 -16) 📝 `internal/cluster/redirect_test.go` (+66 -2) 📝 `internal/service/endpoint.go` (+1 -1) 📝 `internal/service/endpoint_test.go` (+22 -0) 📝 `internal/utils/parser/cbor.go` (+22 -2) ➕ `internal/utils/parser/cbor_test.go` (+36 -0) </details> ### 📄 Description …r redirecting traffic with path style and refactor redirect request logic Fixes: <img width="441" alt="image" src="https://github.com/user-attachments/assets/59440a0a-811b-4c96-b85b-8c70847b920d" /> --- <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:40 -05:00
yindo closed this issue 2026-02-16 01:15:40 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#352