Add support for setting response header values (issue #246).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@246 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-05-26 18:11:56 +00:00
parent 81b0a9a362
commit 42b5597214
4 changed files with 28 additions and 18 deletions

View File

@ -123,9 +123,7 @@ public:
virtual void GetResponseInfo(net::HttpResponseInfo* info) OVERRIDE {
CefResponseImpl* responseImpl =
static_cast<CefResponseImpl*>(response_.get());
scoped_refptr<net::HttpResponseHeaders> headers(
new net::HttpResponseHeaders(responseImpl->GenerateResponseLine()));
info->headers = headers;
info->headers = responseImpl->GetResponseHeaders();
}
virtual bool IsRedirectResponse(GURL* location, int* http_status_code)