How To Add A Specific Content-Type Header To An Incoming Request On OHS If The Header Does Not Already Exist And The Request Is For A Specific Type Of Resource. (Doc ID 2036052.1)

Last updated on NOVEMBER 04, 2016

Applies to:

Oracle HTTP Server - Version 11.1.1.6.0 and later
Information in this document applies to any platform.

Goal

How to add a specific 'Content-type' header to an incoming request on OHS, if the header does not already exist and the request is for a specific type of resource.

For example, if a request for a '.html' resource doesn't already contain a 'Content-type' header, add the header and set it to 'text/html'.
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms