[CalendarServer-dev] Re: [CalendarServer-changes] [726] CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.method. put_c ommon.patch

Cyrus Daboo cdaboo at apple.com
Wed Dec 6 17:02:05 PST 2006

Hi Wilfredo,

--On December 6, 2006 2:46:09 PM -0800 Wilfredo Sánchez Vega 
<wsanchez at wsanchez.net> wrote:

>    Why only apply the content-type header if the resource is new?  If you
> a PUT different data format down, it should updates the type, no?

It writes getcontenttype on every PUT whether its a new resource or an 
overwrite (you can tell a PUT because the source resource is None - source 
is only set when doing a COPY or MOVE). The comment is wrong, the code is 
right. I will fix the comment.

Cyrus Daboo

More information about the calendarserver-dev mailing list