Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Commit

Permalink
fix header
Browse files Browse the repository at this point in the history
Signed-off-by: Musilah <nataleigh.nk@gmail.co>
  • Loading branch information
Musilah committed Nov 10, 2023
1 parent d206fbc commit 395f9f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/api/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -2440,7 +2440,7 @@ func encodeError(_ context.Context, err error, w http.ResponseWriter) {
errMissingThingKey,
errMissingExternalID,
errMissingExternalKey:
w.Header().Set("Location", "/error?error="+url.QueryEscape(displayError.Error()))
w.Header().Set("Location", "/error?error="+url.QueryEscape(err.Error()))
w.WriteHeader(http.StatusSeeOther)
case errInvalidFile:
w.WriteHeader(http.StatusUnsupportedMediaType)
Expand Down

0 comments on commit 395f9f3

Please sign in to comment.