File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -138,11 +138,9 @@ class Connection {
138138 // set to not use signals
139139 void SetNoSignal (bool no);
140140
141- // set whether to follow redirects
142- void FollowRedirects (bool follow);
143-
144- // set whether to follow redirects (-1 for unlimited)
145- void FollowRedirects (bool follow, int maxRedirects);
141+ // set whether to follow redirects, maxRedirects indicitng the maximum
142+ // number of redirects to follow
143+ void FollowRedirects (bool follow, int maxRedirects = -1l );
146144
147145 // set custom user agent
148146 // (this will result in the UA "foo/cool restclient-cpp/VERSION")
Original file line number Diff line number Diff line change @@ -118,18 +118,7 @@ RestClient::Connection::GetHeaders() {
118118 * @brief configure whether to follow redirects on this connection
119119 *
120120 * @param follow - boolean whether to follow redirects
121- */
122- void
123- RestClient::Connection::FollowRedirects (bool follow) {
124- this ->followRedirects = follow;
125- this ->maxRedirects = -1l ;
126- }
127-
128- /* *
129- * @brief configure whether to follow redirects on this connection
130- *
131- * @param follow - boolean whether to follow redirects
132- * @param maxRedirects - int indicating the maximum number of redirect to follow (-1 unlimited)
121+ * @param maxRedirects - int indicating the maximum number of redirect to follow (-1 unlimited, default)
133122 */
134123void
135124RestClient::Connection::FollowRedirects (bool follow, int maxRedirects) {
You can’t perform that action at this time.
0 commit comments