fix
This commit is contained in:
parent
3e3622fb7d
commit
1ecbce4b16
@ -808,6 +808,7 @@ func encodeListGroupUsersResponse(response ListGroupUsersRes, w http.ResponseWri
|
|||||||
}
|
}
|
||||||
|
|
||||||
func encodeListMaResponse(response ListMaRes, w http.ResponseWriter, span trace.Span) error {
|
func encodeListMaResponse(response ListMaRes, w http.ResponseWriter, span trace.Span) error {
|
||||||
|
w.Header().Set("Access-Control-Allow-Origin", "https://manga.syui.ai")
|
||||||
switch response := response.(type) {
|
switch response := response.(type) {
|
||||||
case *ListMaOKApplicationJSON:
|
case *ListMaOKApplicationJSON:
|
||||||
w.Header().Set("Content-Type", "application/json")
|
w.Header().Set("Content-Type", "application/json")
|
||||||
@ -1416,6 +1417,7 @@ func encodeReadGroupResponse(response ReadGroupRes, w http.ResponseWriter, span
|
|||||||
}
|
}
|
||||||
|
|
||||||
func encodeReadMaResponse(response ReadMaRes, w http.ResponseWriter, span trace.Span) error {
|
func encodeReadMaResponse(response ReadMaRes, w http.ResponseWriter, span trace.Span) error {
|
||||||
|
w.Header().Set("Access-Control-Allow-Origin", "https://manga.syui.ai")
|
||||||
switch response := response.(type) {
|
switch response := response.(type) {
|
||||||
case *MaRead:
|
case *MaRead:
|
||||||
w.Header().Set("Content-Type", "application/json")
|
w.Header().Set("Content-Type", "application/json")
|
||||||
|
@ -808,6 +808,7 @@ func encodeListGroupUsersResponse(response ListGroupUsersRes, w http.ResponseWri
|
|||||||
}
|
}
|
||||||
|
|
||||||
func encodeListMaResponse(response ListMaRes, w http.ResponseWriter, span trace.Span) error {
|
func encodeListMaResponse(response ListMaRes, w http.ResponseWriter, span trace.Span) error {
|
||||||
|
w.Header().Set("Access-Control-Allow-Origin", "https://manga.syui.ai")
|
||||||
switch response := response.(type) {
|
switch response := response.(type) {
|
||||||
case *ListMaOKApplicationJSON:
|
case *ListMaOKApplicationJSON:
|
||||||
w.Header().Set("Content-Type", "application/json")
|
w.Header().Set("Content-Type", "application/json")
|
||||||
@ -1416,6 +1417,7 @@ func encodeReadGroupResponse(response ReadGroupRes, w http.ResponseWriter, span
|
|||||||
}
|
}
|
||||||
|
|
||||||
func encodeReadMaResponse(response ReadMaRes, w http.ResponseWriter, span trace.Span) error {
|
func encodeReadMaResponse(response ReadMaRes, w http.ResponseWriter, span trace.Span) error {
|
||||||
|
w.Header().Set("Access-Control-Allow-Origin", "https://manga.syui.ai")
|
||||||
switch response := response.(type) {
|
switch response := response.(type) {
|
||||||
case *MaRead:
|
case *MaRead:
|
||||||
w.Header().Set("Content-Type", "application/json")
|
w.Header().Set("Content-Type", "application/json")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user