src/Headers.cpp in capybara-webkit-0.12.1 vs src/Headers.cpp in capybara-webkit-0.13.0
- old
+ new
@@ -1,10 +1,16 @@
#include "Headers.h"
#include "WebPage.h"
+#include "WebPageManager.h"
-Headers::Headers(WebPage *page, QStringList &arguments, QObject *parent) : Command(page, arguments, parent) {
+Headers::Headers(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
}
void Headers::start() {
- emit finished(new Response(true, page()->pageHeaders()));
+ QStringList headers;
+
+ foreach(QNetworkReply::RawHeaderPair header, page()->pageHeaders())
+ headers << header.first+": "+header.second;
+
+ emit finished(new Response(true, headers.join("\n")));
}