Permalink
Browse files

Also send WebPage::customHeaders within our request

  • Loading branch information...
papoms committed Aug 26, 2012
1 parent 11e8bb1 commit 6f738b06a02e2aaee1c18859b76132e5932334e0
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/webpage.cpp
View
@@ -557,6 +557,13 @@ void WebPage::openUrl(const QString &address, const QVariant &op, const QVariant
}
}
+ //Also send the custom headers within our request
+ QMapIterator<QString, QVariant> i(customHeaders());
+ while (i.hasNext()) {
+ i.next();
+ request.setRawHeader(i.key().toUtf8(), i.value().toString().toUtf8());
+ }
+
if (operation.isEmpty())
operation = "get";

1 comment on commit 6f738b0

@Kaless1n

This comment has been minimized.

Show comment
Hide comment
@Kaless1n

Kaless1n Jun 18, 2014

Could you please send a pull request of this fix?

Could you please send a pull request of this fix?

Please sign in to comment.