aboutsummaryrefslogtreecommitdiff
path: root/http_handle_gc.go
blob: 5f98d0e483da93f99d7b6a654bb57bc977d91ee5 (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, _ map[string]any) {
	runtime.GC()
	http.Redirect(w, r, "/", http.StatusSeeOther)
}