Sha256: 0b87407232454c4056eeaa95e3892ad22d2196226cf8f24fd4c48c66f1ace13d
Contents?: true
Size: 484 Bytes
Versions: 19
Compression:
Stored size: 484 Bytes
Contents
#include "Header.h" #include "WebPage.h" #include "WebPageManager.h" #include "NetworkAccessManager.h" Header::Header(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) { } void Header::start() { QString key = arguments()[0]; QString value = arguments()[1]; if (key.toLower().replace("-", "_") == "user_agent") { page()->setUserAgent(value); } else { manager()->addHeader(key, value); } finish(true); }
Version data entries
19 entries across 19 versions & 1 rubygems