Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

OK, mashed that the first time. Better now!

  • Loading branch information...
commit 5d377aaec56df28f3502d269aa31ec34219f2d46 1 parent 20fa72b
pnomolos pnomolos authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  config/bootstrap/dispatcher.php
3  config/bootstrap/dispatcher.php
View
@@ -50,7 +50,8 @@
// Render the toolbar (unless it's an asset from the li3_perf library)
// Why? See li3_perf\extensions\util\Asset
- $content_type = isset($result->headers['Content-Type']) ? join('', explode(';', $result->headers['Content-Type'], 1)) : '';
+ $content_type = isset($result->headers['Content-Type']) ? $result->headers['Content-Type'] : '';
+ $content_type = array_shift(explode(';', $result->headers['Content-Type'], 2));
if(
!isset($params['request']->params['asset_type']) &&
(!$content_type || $content_type == 'text/html')
Please sign in to comment.
Something went wrong with that request. Please try again.