| 64 | } |
| 65 | |
| 66 | void updateSession(const Poco::URI & uri) |
| 67 | { |
| 68 | ++redirects; |
| 69 | if (redirects <= max_redirects) |
| 70 | { |
| 71 | buildNewSession(uri); |
| 72 | } |
| 73 | else |
| 74 | { |
| 75 | throw Exception(ErrorCodes::TOO_MANY_REDIRECTS, "Too many redirects while trying to access {}", initial_uri.toString()); |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | virtual ~UpdatableSessionBase() = default; |
| 80 | }; |
no test coverage detected