blob: b00ef8aff2fbe64e40091bf9ff6fabf2ab3688e7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-FileContributor: Runxi Yu <https://runxiyu.org>
package main
import (
"net/http"
"runtime"
)
func httpHandleGC(w http.ResponseWriter, r *http.Request, params map[string]any) {
runtime.GC()
http.Redirect(w, r, "/", http.StatusSeeOther)
}
|