diff --git a/src/http/routes.cc b/src/http/routes.cc index 618c4656b31..7cdded3f017 100644 --- a/src/http/routes.cc +++ b/src/http/routes.cc @@ -102,7 +102,7 @@ future > routes::handle(const sstring& path, std::u return r.handle_exception(_general_handler); } catch (const redirect_exception& _e) { *rep = _e.to_reply(); - rep->done("json"); + rep->set_content_type("json"); } catch (...) { rep = exception_reply(std::current_exception()); }