Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gzip_html
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
gzip_html
Merge requests
!3
3287855: Automated Drupal 10 compatibility fixes
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
3287855: Automated Drupal 10 compatibility fixes
issue/gzip_html-3287855:3287855-automated-drupal-10
into
8.x-1.x
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
Benjamin Rasmussen
requested to merge
issue/gzip_html-3287855:3287855-automated-drupal-10
into
8.x-1.x
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
2
Expand
Closes
#3287855
0
0
Merge request reports
Compare
8.x-1.x
8.x-1.x (base)
and
latest version
latest version
65499a72
1 commit,
1 year ago
2 files
+
4
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/EventSubscriber/GzipHTMLSubscriber.php
+
3
−
3
Options
@@ -2,11 +2,11 @@
namespace
Drupal\gzip_html\EventSubscriber
;
use
Symfony\Component\HttpKernel\Event\ResponseEvent
;
use
Drupal\Core\Config\ConfigFactoryInterface
;
use
Drupal\Core\Session\AccountProxyInterface
;
use
Drupal\devel\DevelDumperPluginManagerInterface
;
use
Symfony\Component\EventDispatcher\EventSubscriberInterface
;
use
Symfony\Component\HttpKernel\Event\FilterResponseEvent
;
use
Symfony\Component\HttpKernel\KernelEvents
;
/**
@@ -36,10 +36,10 @@ class GzipHTMLSubscriber implements EventSubscriberInterface {
/**
* Gzips the HTML.
*
* @param \Symfony\Component\HttpKernel\Event\
Filter
ResponseEvent $event
* @param \Symfony\Component\HttpKernel\Event\ResponseEvent $event
* The filter event.
*/
public
function
response
(
Filter
ResponseEvent
$event
)
{
public
function
response
(
ResponseEvent
$event
)
{
// Check if compression is disabled.
if
(
!
$this
->
config
->
get
(
'gzip_html'
))
{
return
;
Loading