fix various endpoints

This commit is contained in:
yusing
2025-02-13 15:05:16 +08:00
parent 02d1c9ce98
commit decd2c2ded
9 changed files with 39 additions and 51 deletions

View File

@@ -0,0 +1,7 @@
package httpheaders
import "net/http"
func IsSSE(h http.Header) bool {
return h.Get("Content-Type") == "text/event-stream"
}