Re: [Zope] Wrong mime type sent by Zope on every page

2000-06-09 Thread Jerome Alet
On Thu, 8 Jun 2000, Andrew Diller wrote: Server: Zope/Zope 2.1.6 (source release, python 1.5.2, linux2) ZServer/1.1b1 Why does Server: return linux2? This is an Compaq Alpha running Tru64!?! No. That's what you are told it is. In fact it's an i386 under GNU/Linux ;-)) bye, Jerome ALET -

Re: [Zope] Wrong mime type sent by Zope on every page

2000-06-08 Thread Martijn Pieters
On Thu, Jun 08, 2000 at 11:51:03AM -0400, Andrew Diller wrote: It was just brought to my attention that Zope (using Zserver) is sending the wrong MIME type of all its pages. Here is the header from zope: (some lines have been cut) -- HTTP/1.0 200 OK Server: Zope/Zope

Re: [Zope] Wrong mime type sent by Zope on every page

2000-06-08 Thread Chris Withers
Martijn Pieters wrote: You probably did a 'HEAD' request, at which point Zope doesn't render the page, but rather only acknowledges it's existence by returning above (bogus) response. That's not very search engine friendly :( The head should return the same type as the real document otherwise

Re: [Zope] Wrong mime type sent by Zope on every page

2000-06-08 Thread Martijn Pieters
On Thu, Jun 08, 2000 at 06:59:29PM +0100, Chris Withers wrote: Martijn Pieters wrote: You probably did a 'HEAD' request, at which point Zope doesn't render the page, but rather only acknowledges it's existence by returning above (bogus) response. That's not very search engine friendly

Re: [Zope] Wrong mime type sent by Zope on every page

2000-06-08 Thread Chris Withers
Martijn Pieters wrote: But what if there are side effects to calling the document? What should happen? I don't want a counter to go up or anything just because a HEAD was called on the object. This is not as black-and-white and simple an issue. The web is an imperfect medium, but returning

RE: [Zope] Wrong mime type sent by Zope on every page

2000-06-08 Thread Brian Lloyd
But what if there are side effects to calling the document? What should happen? I don't want a counter to go up or anything just because a HEAD was called on the object. This is not as black-and-white and simple an issue. The web is an imperfect medium, but returning a junk

RE: [Zope] Wrong mime type sent by Zope on every page

2000-06-08 Thread Dan L. Pierson
Brian Lloyd writes: What if we change this to: if a 'content_type' attribute exists, it is used else if the object's id seems to have a file extension (. in the id), try to use guess_content_type else if there is a 'default_content_type' attribute, use that

RE: [Zope] Wrong mime type sent by Zope on every page

2000-06-08 Thread Brian Lloyd
-Original Message- From: Dan L. Pierson [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 08, 2000 3:47 PM To: Brian Lloyd Cc: 'Chris Withers'; Martijn Pieters; Andrew Diller; [EMAIL PROTECTED] Subject: RE: [Zope] Wrong mime type sent by Zope on every page Brian Lloyd writes

Re: [Zope] Wrong mime type sent by Zope on every page

2000-06-08 Thread Chris Withers
Brian Lloyd wrote: What if we change this to: if a 'content_type' attribute exists, it is used else if the object's id seems to have a file extension (. in the id), try to use guess_content_type else if there is a 'default_content_type' attribute, use that It would be