Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
6ec3a9ef
Commit
6ec3a9ef
authored
May 29, 2013
by
Nathaniel Catchpole
Browse files
Issue
#1999338
by chertzog: Use Symfony Request for aggregator module.
parent
f88727ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/aggregator/tests/aggregator_test.module
View file @
6ec3a9ef
...
...
@@ -35,8 +35,8 @@ function aggregator_test_feed($use_last_modified = FALSE, $use_etag = FALSE) {
$last_modified
=
strtotime
(
'Sun, 19 Nov 1978 05:00:00 GMT'
);
$etag
=
Crypt
::
hashBase64
(
$last_modified
);
$if_modified_since
=
isset
(
$_SERVER
[
'HTTP_IF_MODIFIED_SINCE'
])
?
strtotime
(
$_SERVER
[
'HTTP_IF_MODIFIED_SINCE'
])
:
FALSE
;
$if_none_match
=
isset
(
$_SERVER
[
'HTTP_IF_NONE_MATCH'
])
?
stripslashes
(
$_SERVER
[
'HTTP_IF_NONE_MATCH'
])
:
FALSE
;
$if_modified_since
=
strtotime
(
Drupal
::
request
()
->
server
->
get
(
'HTTP_IF_MODIFIED_SINCE'
))
;
$if_none_match
=
stripslashes
(
Drupal
::
request
()
->
server
->
get
(
'HTTP_IF_NONE_MATCH'
))
;
// Send appropriate response. We respond with a 304 not modified on either
// etag or on last modified.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment