Re-ordered function definitions

This commit is contained in:
Veloman Yunkan 2020-05-23 17:11:26 +04:00
parent c39fce8839
commit a0f7f32570
1 changed files with 25 additions and 25 deletions

View File

@ -92,6 +92,9 @@ RequestContext::RequestContext(struct MHD_Connection* connection,
} catch (const std::out_of_range&) {} } catch (const std::out_of_range&) {}
} }
RequestContext::~RequestContext()
{}
void RequestContext::parse_byte_range(std::string range) void RequestContext::parse_byte_range(std::string range)
{ {
const std::string byteUnitSpec("bytes="); const std::string byteUnitSpec("bytes=");
@ -106,7 +109,7 @@ void RequestContext::parse_byte_range(std::string range)
if (iss.good() && c=='-') { if (iss.good() && c=='-') {
iss >> end; iss >> end;
if (iss.fail()) { if (iss.fail()) {
// Something went wrong will extracting. // Something went wrong while extracting
end = -1; end = -1;
} }
if (iss.eof()) { if (iss.eof()) {
@ -117,9 +120,6 @@ void RequestContext::parse_byte_range(std::string range)
} }
} }
RequestContext::~RequestContext()
{}
int RequestContext::fill_header(void *__this, enum MHD_ValueKind kind, int RequestContext::fill_header(void *__this, enum MHD_ValueKind kind,
const char *key, const char *value) const char *key, const char *value)