Skip to content

Commit

Permalink
Merge pull request scylladb#13 from jcsp/http-redirect-status
Browse files Browse the repository at this point in the history
http: permit custom status on redirect_exception
  • Loading branch information
dotnwat committed Nov 2, 2021
2 parents 48f7ad9 + 3fe814b commit 99b7bba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/seastar/http/exception.hh
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ private:
*/
class redirect_exception : public base_exception {
public:
redirect_exception(const std::string& url)
: base_exception("", reply::status_type::moved_permanently), url(
redirect_exception(const std::string& url, reply::status_type status = reply::status_type::moved_permanently)
: base_exception("", status), url(
url) {
}
std::string url;
Expand Down

0 comments on commit 99b7bba

Please sign in to comment.