mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
Fixed routing in the brynet backend.
This commit is contained in:
parent
a16222e29e
commit
92ce00a88c
@ -60,28 +60,21 @@ void BryRequest::send_file(const std::string &p_file_path) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void BryRequest::reset() {
|
void BryRequest::reset() {
|
||||||
application = nullptr;
|
Request::reset();
|
||||||
|
|
||||||
http_parser = nullptr;
|
http_parser = nullptr;
|
||||||
session = nullptr;
|
session = nullptr;
|
||||||
current_middleware_index = 0;
|
|
||||||
middleware_stack = nullptr;
|
|
||||||
_path_stack.clear();
|
|
||||||
_path_stack_pointer = 0;
|
|
||||||
file_size = 0;
|
|
||||||
current_file_progress = 0;
|
|
||||||
connection_closed = false;
|
|
||||||
|
|
||||||
head.clear();
|
|
||||||
body.clear();
|
|
||||||
footer.clear();
|
|
||||||
compiled_body.clear();
|
|
||||||
|
|
||||||
if (response)
|
if (response)
|
||||||
delete response;
|
delete response;
|
||||||
|
|
||||||
response = new ::HttpResponse();
|
response = new ::HttpResponse();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string BryRequest::parser_get_path() {
|
||||||
|
return http_parser->getPath();
|
||||||
|
}
|
||||||
|
|
||||||
void BryRequest::update() {
|
void BryRequest::update() {
|
||||||
if (file_next) {
|
if (file_next) {
|
||||||
file_next = false;
|
file_next = false;
|
||||||
|
@ -22,6 +22,7 @@ public:
|
|||||||
void send();
|
void send();
|
||||||
void send_file(const std::string &p_file_path);
|
void send_file(const std::string &p_file_path);
|
||||||
void reset();
|
void reset();
|
||||||
|
std::string parser_get_path();
|
||||||
|
|
||||||
void update();
|
void update();
|
||||||
|
|
||||||
|
@ -67,6 +67,7 @@ void Request::reset() {
|
|||||||
file_size = 0;
|
file_size = 0;
|
||||||
current_file_progress = 0;
|
current_file_progress = 0;
|
||||||
connection_closed = false;
|
connection_closed = false;
|
||||||
|
_full_path = "";
|
||||||
|
|
||||||
head.clear();
|
head.clear();
|
||||||
body.clear();
|
body.clear();
|
||||||
@ -76,7 +77,6 @@ void Request::reset() {
|
|||||||
|
|
||||||
std::string Request::parser_get_path() {
|
std::string Request::parser_get_path() {
|
||||||
return "";
|
return "";
|
||||||
//return http_parser->getPath();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Request::setup_url_stack() {
|
void Request::setup_url_stack() {
|
||||||
|
@ -46,19 +46,7 @@ void DRequest::send_file(const std::string &p_file_path) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void DRequest::reset() {
|
void DRequest::reset() {
|
||||||
application = nullptr;
|
Request::reset();
|
||||||
current_middleware_index = 0;
|
|
||||||
middleware_stack = nullptr;
|
|
||||||
_path_stack.clear();
|
|
||||||
_path_stack_pointer = 0;
|
|
||||||
file_size = 0;
|
|
||||||
current_file_progress = 0;
|
|
||||||
connection_closed = false;
|
|
||||||
|
|
||||||
head.clear();
|
|
||||||
body.clear();
|
|
||||||
footer.clear();
|
|
||||||
compiled_body.clear();
|
|
||||||
|
|
||||||
response.reset();
|
response.reset();
|
||||||
request.reset();
|
request.reset();
|
||||||
|
Loading…
Reference in New Issue
Block a user