mirror of https://github.com/kiwix/libkiwix.git
Dropped RequestContext::has_range()
This commit is contained in:
parent
50a850f3a9
commit
f52b220d01
|
@ -126,7 +126,7 @@ void RequestContext::print_debug_info() const {
|
||||||
printf("full_url: %s\n", full_url.c_str());
|
printf("full_url: %s\n", full_url.c_str());
|
||||||
printf("url : %s\n", url.c_str());
|
printf("url : %s\n", url.c_str());
|
||||||
printf("acceptEncodingDeflate : %d\n", acceptEncodingDeflate);
|
printf("acceptEncodingDeflate : %d\n", acceptEncodingDeflate);
|
||||||
printf("has_range : %d\n", has_range());
|
printf("has_range : %d\n", byteRange_.kind() != ByteRange::NONE);
|
||||||
printf("is_valid_url : %d\n", is_valid_url());
|
printf("is_valid_url : %d\n", is_valid_url());
|
||||||
printf(".............\n");
|
printf(".............\n");
|
||||||
}
|
}
|
||||||
|
@ -168,10 +168,6 @@ bool RequestContext::is_valid_url() const {
|
||||||
return !url.empty();
|
return !url.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RequestContext::has_range() const {
|
|
||||||
return byteRange_.kind() == ByteRange::PARSED;
|
|
||||||
}
|
|
||||||
|
|
||||||
ByteRange RequestContext::get_range() const {
|
ByteRange RequestContext::get_range() const {
|
||||||
return byteRange_;
|
return byteRange_;
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,7 +80,6 @@ class RequestContext {
|
||||||
std::string get_url_part(int part) const;
|
std::string get_url_part(int part) const;
|
||||||
std::string get_full_url() const;
|
std::string get_full_url() const;
|
||||||
|
|
||||||
bool has_range() const;
|
|
||||||
ByteRange get_range() const;
|
ByteRange get_range() const;
|
||||||
|
|
||||||
bool can_compress() const { return acceptEncodingDeflate; }
|
bool can_compress() const { return acceptEncodingDeflate; }
|
||||||
|
|
Loading…
Reference in New Issue