Skip to content

Commit

Permalink
fix error with scale
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman SHamagin committed Sep 4, 2023
1 parent ebb6bef commit 04b0135
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/server/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ func (c *Config) m3u8ReverseProxy(ctx *gin.Context) {
if err != nil {
log.Fatal(err)
}
defer resp.Body.Close()
defer func(Body io.ReadCloser) {
_ = Body.Close()
}(resp.Body)

p, listType, err := m3u8.DecodeFrom(bufio.NewReader(resp.Body), true)
if err != nil {
Expand Down

0 comments on commit 04b0135

Please sign in to comment.