Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (16 sloc) 0.484 kb
#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);
}
Jump to Line
Something went wrong with that request. Please try again.