Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/web/backend/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,15 @@
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}

for k, v := range updates {
if v == "" {
os.Unsetenv(k)

Check failure on line 602 in src/web/backend/server.go

View workflow job for this annotation

GitHub Actions / Lint files

Error return value of `os.Unsetenv` is not checked (errcheck)
} else {
os.Setenv(k, v)

Check failure on line 604 in src/web/backend/server.go

View workflow job for this annotation

GitHub Actions / Lint files

Error return value of `os.Setenv` is not checked (errcheck)
}
}

w.WriteHeader(http.StatusOK)
}

Expand Down
Loading