aboutsummaryrefslogtreecommitdiff
path: root/http_handle_gc.go
blob: 73bd2a662e5f5825eab2c7480dec284189cb66c2 (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(writer http.ResponseWriter, request *http.Request, _ map[string]any) {
	runtime.GC()
	http.Redirect(writer, request, "/", http.StatusSeeOther)
}