Index: third_party/WebKit/Source/core/page/EventSource.cpp |
diff --git a/third_party/WebKit/Source/core/page/EventSource.cpp b/third_party/WebKit/Source/core/page/EventSource.cpp |
index 6f5f3f83bd1b13d13b89cfca00b8f18deba3fca7..726414ffa94f68b1af5c6b2bc19a351a87b32df1 100644 |
--- a/third_party/WebKit/Source/core/page/EventSource.cpp |
+++ b/third_party/WebKit/Source/core/page/EventSource.cpp |
@@ -121,6 +121,7 @@ void EventSource::connect() |
request.setHTTPHeaderField(HTTPNames::Accept, "text/event-stream"); |
request.setHTTPHeaderField(HTTPNames::Cache_Control, "no-cache"); |
request.setRequestContext(WebURLRequest::RequestContextEventSource); |
+ request.setIsExternalRequest(executionContext.securityContext().isHostedInReservedIPRange()); |
if (m_parser && !m_parser->lastEventId().isEmpty()) { |
// HTTP headers are Latin-1 byte strings, but the Last-Event-ID header is encoded as UTF-8. |
// TODO(davidben): This should be captured in the type of setHTTPHeaderField's arguments. |