Skip to content

Commit

Permalink
Also send WebPage::customHeaders within our request
Browse files Browse the repository at this point in the history
  • Loading branch information
papoms committed Aug 26, 2012
1 parent 11e8bb1 commit 6f738b0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/webpage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

1 comment on commit 6f738b0

@Kaless1n
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please send a pull request of this fix?

Please sign in to comment.