Michael Haschke  committed 2898744

[mod] send requested application type back as content type on redirects, just to show to what kind of content requests where leaded to

  • Participants
  • Parent commits 2ef3ee7

Comments (0)

Files changed (1)

File foafpressapp/core/Foafpress.php

         // if one of the application types is requested with q=1 then forward location to file
         if ($this->URI_Request && !$this->extensiontype && $type = $this->isRequestType(array_keys($this->config['types'])))
+            header('Content-Type: '.$type, true, 301);
             header('Location: '.$this->URI_Request.$this->config['types'][$type], true, 301); exit();