Fix reuse for different URIs in HTTPClient::begin by paulocsanz · Pull Request #8466 · esp8266/Arduino (original) (raw)

Fixes #8331

The problem is that _canReuse was not reset in begin, like in HTTPClient::setURL.

Ideally begin should not be called twice if the client hasn't changed, but it may happen, better safe than sorry.