diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-10-07 13:20:54 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-10-07 18:19:19 +0200 |
commit | 2a5ea0269a1f9511c51d661a6c7d7bdc7d0176fa (patch) | |
tree | 7649cf4c1c20bbe8c801d642148992eea314d3ec /lib/configuration | |
parent | Add hint on enabling plugins to makepkg (diff) | |
download | smolbote-2a5ea0269a1f9511c51d661a6c7d7bdc7d0176fa.tar.xz |
Expand HTTP header settings #4
- add doc/Usage/Filter.asciidoc to explain the usage of the filter headers
- add HTTP headers to Profile (section "headers")
- Use request interceptor to apply filter headers, then profile headers
- add insert/delete actions to ProfileEditor
Diffstat (limited to 'lib/configuration')
-rw-r--r-- | lib/configuration/configuration.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/configuration/configuration.h b/lib/configuration/configuration.h index d4770ae..1524536 100644 --- a/lib/configuration/configuration.h +++ b/lib/configuration/configuration.h @@ -56,6 +56,13 @@ public: return std::optional<QString>(QString::fromStdString(this->value<std::string>(path).value())); //return std::optional<QString>(vm[path].as<const char*>()); + } else if constexpr(std::is_same_v<T, QStringList>) { + QStringList r; + for(const std::string &item : this->value<std::vector<std::string>>(path).value()) { + r.append(QString::fromStdString(item)); + } + return std::optional<QStringList>(r); + } else if constexpr(std::is_same_v<T, std::string>) { if(vm[path].value().type() == typeid(int)) { |