- Add cache awareness to CefURLRequest (issue #2283)

- Properly set referer values on server requests (issue #2278)
This commit is contained in:
Marshall Greenblatt
2017-11-17 11:33:50 -05:00
parent 7e783d6a37
commit facee1f750
5 changed files with 1363 additions and 412 deletions

View File

@@ -966,6 +966,7 @@ class StaticHttpRequestRunner : public HttpTestRunner::RequestRunner {
CefRefPtr<CefRequest> request = CreateTestServerRequest(
path, "POST", "foo=bar&choo=too", "application/x-www-form-urlencoded",
request_headers);
request->SetReferrer("http://tests/referer.html", REFERRER_POLICY_DEFAULT);
HttpServerResponse response(HttpServerResponse::TYPE_CUSTOM);
response.response_code = 202;