You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Ben Laurie <be...@gonzo.ben.algroup.co.uk> on 1996/10/12 14:24:39 UTC
URI in type maps?
At the top of a type map one must have a URI - but it seems it can be anything
at all ... what is it for?
Cheers,
Confused of Chiswick.
--
Ben Laurie Phone: +44 (181) 994 6435
Freelance Consultant and Fax: +44 (181) 994 6472
Technical Director Email: ben@algroup.co.uk
A.L. Digital Ltd, URL: http://www.algroup.co.uk
London, England. Apache Group member (http://www.apache.org)
Re: URI in type maps?
Posted by Paul Sutton <pa...@ukweb.com>.
On Tue, 15 Oct 1996, Paul Sutton wrote:
> On Sat, 12 Oct 1996, Ben Laurie wrote:
> > At the top of a type map one must have a URI - but it seems it can be anything
> > at all ... what is it for?
> [...]
> But I've just noticed that a bug in my mod_negotiation update now means
> the initial URI line _isn't_ being ignored (it is treated as a variant).
> I'll post a fix tomorrow.
Or maybe later... here it is at last.
This bug fix restores the old behaviour, where the initial URI: line from
the var-map file is ignored.
Paul
--
Index: mod_negotiation.c
===================================================================
RCS file: /export/home/cvs/apache/src/mod_negotiation.c,v
retrieving revision 1.20
diff -c -r1.20 mod_negotiation.c
*** mod_negotiation.c 1996/10/20 18:03:36 1.20
--- mod_negotiation.c 1996/10/21 09:07:39
***************
*** 656,665 ****
mime_info.description = get_token (neg->pool, &body, 0);
}
} else {
! #ifdef NOTDEF
! if (mime_info.quality > 0)
! #endif
! if (*mime_info.file_name)
{
void *new_var = push_array (neg->avail_vars);
memcpy (new_var, (void *)&mime_info, sizeof (var_rec));
--- 656,662 ----
mime_info.description = get_token (neg->pool, &body, 0);
}
} else {
! if (mime_info.type_quality > 0)
{
void *new_var = push_array (neg->avail_vars);
memcpy (new_var, (void *)&mime_info, sizeof (var_rec));
Re: URI in type maps?
Posted by Paul Sutton <pa...@ukweb.com>.
On Sat, 12 Oct 1996, Ben Laurie wrote:
> At the top of a type map one must have a URI - but it seems it can be anything
> at all ... what is it for?
It is (or should be) completely ignored. I'm not entirely sure of the
intent of this line, I would guess it was to supply content information
about the negotiable resource itself, as opposed to the variants. It could
prove useful as a way of suppling (say) cache-control information for the
negotiable resource (e.g. the max-age in the Alternates header of
trans-conneg). A type map without the initial URI: line should be valid.
But I've just noticed that a bug in my mod_negotiation update now means
the initial URI line _isn't_ being ignored (it is treated as a variant).
I'll post a fix tomorrow.
Paul
UK Web Ltd