Closed qmuntal closed 1 month ago
The http.Response body should always be closed, even for non-200 status codes. Not doing so leaks the system resources associated to the body.
While here, associate the context passed in detectRegion to the http request. It was previously not being used.
detectRegion
Issues 0 New issues 0 Accepted issues
Measures 0 Security Hotspots No data about Coverage 0.0% Duplication on New Code
See analysis details on SonarCloud
Can this get merged? It's a good fix. Adds context usage and fixes leaks.
The http.Response body should always be closed, even for non-200 status codes. Not doing so leaks the system resources associated to the body.
While here, associate the context passed in
detectRegion
to the http request. It was previously not being used.