[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Setting content type

From: Konstantin Kolinko <knst.kolinko_at_gmail.com>
Date: Fri, 30 Sep 2011 15:35:25 +0400

2011/9/30 D, Dinoj <Dinoj.D_at_honeywell.com>:
> Hello,
>
>
>
> If we are accessing subversion repository through WebDev module , then the
>  content type will be send to the client depend the property what we have
> set for files. It won’t look into apche mime types. But there is a way to
> edit the header information for Content-type
>
>
>
> For example:
>
> <IfModule headers_module>
>
>   SetEnvIf Request_URI "\.docx$" docx_file
>
>   RequestHeader edit Content-Type
> "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
> env=docx_file

The above is *Request*Header, but you want to modify the Response
header, not a Request one.

There is "Header" directive for that purpose, though I have not tried it.

I'd prefer to set correct mime-types on the files.

>
> </IfModule>
>

Best regards,
Konstantin Kolinko
Received on 2011-09-30 13:35:59 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.