Skip to content

Commit

Permalink
feat: support hook id to endpoint request
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly committed Dec 19, 2024
1 parent be947c2 commit cad33b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/service/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ func Endpoint(
req.Header.Del("X-Original-Url")
req.Header.Del("X-Original-Host")

// setup hook id to request
req.Header.Set("Dify-Hook-Id", endpoint.HookID)

var buffer bytes.Buffer
err = req.Write(&buffer)
if err != nil {
Expand Down

0 comments on commit cad33b0

Please sign in to comment.