mirror of https://github.com/kiwix/libkiwix.git
Re-ordered function definitions
This commit is contained in:
parent
c39fce8839
commit
a0f7f32570
|
@ -92,6 +92,9 @@ RequestContext::RequestContext(struct MHD_Connection* connection,
|
|||
} catch (const std::out_of_range&) {}
|
||||
}
|
||||
|
||||
RequestContext::~RequestContext()
|
||||
{}
|
||||
|
||||
void RequestContext::parse_byte_range(std::string range)
|
||||
{
|
||||
const std::string byteUnitSpec("bytes=");
|
||||
|
@ -106,7 +109,7 @@ void RequestContext::parse_byte_range(std::string range)
|
|||
if (iss.good() && c=='-') {
|
||||
iss >> end;
|
||||
if (iss.fail()) {
|
||||
// Something went wrong will extracting.
|
||||
// Something went wrong while extracting
|
||||
end = -1;
|
||||
}
|
||||
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,
|
||||
const char *key, const char *value)
|
||||
|
|
Loading…
Reference in New Issue