[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    [PATCH] Support for Content-type header on HTTP PUT
From:       Tobias Koenig <tokoe () kde ! org>
Date:       2007-02-28 16:16:20
Message-ID: 20070228161620.GA13064 () ghostdog ! localnet
[Download RAW message or body]

[Attachment #2 (multipart/mixed)]


Hi,

the attached patch adds support for the 'Content-type' header on
HTTP PUT operations.

I can't find any spec/rfc where exactly is stated that HTTP PUT must
provide a content-type, however some server expect it from their
clients, so we should allow the client applications to use
  job->addMetaData()
to make these servers happy.

Objections?

Ciao,
Tobias
-- 
Separate politics from religion and economy!
The Council of the European Union is an undemocratic and illegal institution!

["kio_http.patch" (text/plain)]

Index: http.cc
===================================================================
--- http.cc	(Revision 629391)
+++ http.cc	(Arbeitskopie)
@@ -2491,7 +2491,7 @@
       header += "\r\n";
     }
 
-    if (m_request.method == HTTP_POST)
+    if (m_request.method == HTTP_POST || m_request.method == HTTP_PUT)
     {
       header += metaData("content-type");
       header += "\r\n";

["signature.asc" (application/pgp-signature)]
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic