Skip to content

Commit

Permalink
return the origin
Browse files Browse the repository at this point in the history
  • Loading branch information
directionless committed Mar 6, 2024
1 parent f25d8bb commit 01e0d56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ee/localserver/request-id.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type (
Nonce string
Timestamp time.Time
Status status
Origin string
}

status struct {
Expand Down Expand Up @@ -78,6 +79,7 @@ func (ls *localServer) requestIdHandlerFunc(w http.ResponseWriter, r *http.Reque
response := requestIdsResponse{
Nonce: ulid.New(),
Timestamp: time.Now(),
Origin: r.Header.Get("Origin"),
Status: status{
EnrollmentStatus: string(enrollmentStatus),
},
Expand Down

0 comments on commit 01e0d56

Please sign in to comment.