Hello list,
according to the fine documentation: " SETF of HEADER-OUT changes the current value of the header named name. If no header named name exists it is created. For backwards compatibility, name can also be a string in which case the association between a header and its name is case-insensitive.
Note that the headers Set-Cookie, Content-Length, and Content-Type cannot be queried by HEADER-OUT and must not be set by SETF of HEADER-OUT."
But trying to set the "Server" header from within a handler doesn't seem to change the server header at all.
(setf (header-out "Server") "Local-Server" (header-out "X-Schtupid") "Foobar" (content-type) "text/xml; charset=utf-8" (return-code) +http-multi-status+)
will yield the following resopnse from the server:
HTTP/1.1 207 Multi-Status Content-Length: 1265 Content-Type: text/xml; charset=utf-8 Date: Mon, 24 Sep 2007 12:37:34 GMT Connection: Close X-Schtupid: Foobar Server: Hunchentoot 0.13.0 <---- Wrong server name
Is this a documentation bugglet or a bug in the code?
Cheers, Ralf Mattes