Hi, sorry for my bad english.

When server deliver pages with content-encoding gzip /ejectorseat/check can not be showed

Browser show this error message and ajax check doesn't work:

The page you are trying to view cannot be show because it uses an invalid or unsupported form of compression

I would attach a proposed patch

Comments

robertom created an issue. See original summary.

robertom’s picture

Status: Active » Needs review
StatusFileSize
new292 bytes
elc’s picture

This would only be for the D7 version - the D8 code returns a JsonResponse which automatically terminates the request gracefully.

elc’s picture

Status: Needs review » Reviewed & tested by the community

After diving into the core and docs, called drupal_exit() is required to prevent the page being themed.

  • elc committed ad46f99a on 7.x-1.x authored by robertom
    fix: #2820806 Call drupal_exit() for no theme and exit hooks.
    
    By:...
elc’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.