jomei / notionapi

A Notion API SDK, written in Golang

Home Page:https://pkg.go.dev/github.com/jomei/notionapi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug: resp body not close

csimplestring opened this issue · comments

Hi, firstly thanks for the code!
When I checked the client code, I found that all the response body from http client is not closed. Typically, there should be a line of
defer resp.Body.Close()

Otherwise it causes resource leak.

D'oh! What a shame...
Thanks a lot! I'll fix it ASAP