mirror of
https://github.com/thoughtbot/capybara-webkit
synced 2023-03-27 23:22:28 -04:00
410f4e78c6
The behavior of QWebFrame::toPlainText is undefined if the content contains non-Latin1 characters. In Qt 5, additional MIME types are considered supported, so there's no way to get at the raw data when unsupported content has been loaded. Instead, proxy network replies through NetworkReplyProxy which provides repetitive reads.
11 lines
280 B
C++
11 lines
280 B
C++
#include "Headers.h"
|
|
#include "WebPage.h"
|
|
#include "WebPageManager.h"
|
|
|
|
Headers::Headers(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
|
|
}
|
|
|
|
void Headers::start() {
|
|
finish(true, page()->pageHeaders().join("\n"));
|
|
}
|
|
|