summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-05 07:09:47 -0500
committerJeff Carr <[email protected]>2025-09-05 07:24:24 -0500
commitb2af891b203ba28b74dc703e423fc7691cb3a3f1 (patch)
tree411250f05e0a257da9e71e74e7e32f7cfa4cbdc6 /http.go
parent1442d4f6c5b2940a1bafd0fe05fe5bed32015344 (diff)
builds. puts http headers in protobufv0.0.21
Diffstat (limited to 'http.go')
-rw-r--r--http.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/http.go b/http.go
index f07c495..4d9a5d6 100644
--- a/http.go
+++ b/http.go
@@ -139,6 +139,11 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
return
}
+ if strings.HasPrefix(route, "/patches/") {
+ handlePatches(w, r)
+ return
+ }
+
if route == "/goReference.svg" {
w.Header().Set("Content-Type", "image/svg+xml")
writeFile(w, "goReference.svg")