Permalink
Browse files

OK, mashed that the first time. Better now!

  • Loading branch information...
1 parent 20fa72b commit 5d377aaec56df28f3502d269aa31ec34219f2d46 @pnomolos pnomolos committed Mar 31, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 config/bootstrap/dispatcher.php
@@ -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')

0 comments on commit 5d377aa

Please sign in to comment.