mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-09-08 06:39:53 -04:00
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&) {}
|
} 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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user