16 lines
284 B
Go
16 lines
284 B
Go
|
package go_vod
|
||
|
|
||
|
import "net/http"
|
||
|
|
||
|
func GetQueryString(r *http.Request) string {
|
||
|
query := r.URL.Query().Encode()
|
||
|
if query != "" {
|
||
|
query = "?" + query
|
||
|
}
|
||
|
return query
|
||
|
}
|
||
|
|
||
|
func WriteM3U8ContentType(w http.ResponseWriter) {
|
||
|
w.Header().Set("Content-Type", "application/x-mpegURL")
|
||
|
}
|