mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-18 23:33:51 +01:00
fix various endpoints
This commit is contained in:
7
internal/net/http/httpheaders/sse.go
Normal file
7
internal/net/http/httpheaders/sse.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package httpheaders
|
||||
|
||||
import "net/http"
|
||||
|
||||
func IsSSE(h http.Header) bool {
|
||||
return h.Get("Content-Type") == "text/event-stream"
|
||||
}
|
||||
Reference in New Issue
Block a user