Skip to content
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
@@ -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.

Copy link

@Kaless1n Kaless1n commented on 6f738b0 Jun 18, 2014

Could you please send a pull request of this fix?

Please sign in to comment.
You can’t perform that action at this time.