Set content-type on /mounts endpoint
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
DataHoarder 2022-05-15 20:42:42 +02:00
parent b88107ad4c
commit 63080c66ab
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk

View file

@ -443,6 +443,7 @@ func (q *Queue) HandleRadioRequest(writer http.ResponseWriter, request *http.Req
writer.Header().Set("Server", "MeteorLight/radio")
writer.Header().Set("Accept-Ranges", "none")
writer.Header().Set("Connection", "close")
writer.Header().Set("Content-Type", "application/json; charset=utf-8")
writer.Header().Set("Access-Control-Allow-Origin", "*")
writer.Header().Set("Access-Control-Allow-Headers", "Accept, Content-Type, Icy-Metadata")
writer.Header().Set("Access-Control-Expose-Headers", "Accept-Ranges, Server, Content-Type")