protocol: respect provided mimetype in generated response headers

This commit is contained in:
Robo 2015-09-15 19:54:16 +05:30
parent 6615787775
commit 57c910faef
5 changed files with 57 additions and 1 deletions

View file

@ -19,6 +19,9 @@ class URLRequestStringJob : public JsAsker<net::URLRequestSimpleJob> {
// JsAsker:
void StartAsync(scoped_ptr<base::Value> options) override;
// URLRequestJob:
void GetResponseInfo(net::HttpResponseInfo* info) override;
// URLRequestSimpleJob:
int GetData(std::string* mime_type,
std::string* charset,