Fix error videos

This commit is contained in:
Ben Sarmiento
2023-11-07 01:17:23 +01:00
parent 6be49d8843
commit 568a9a9b70
5 changed files with 36 additions and 32 deletions

View File

@@ -1,13 +1,5 @@
package http
import (
"net/http"
)
func writeHTTPError(w http.ResponseWriter, errorMessage string, statusCode int) {
http.Error(w, errorMessage, statusCode)
}
func removeEmptySegments(urlSegments []string) []string {
var result []string
for _, s := range urlSegments {