]> code.citadel.org Git - citadel.git/blobdiff - webcit/rss.c
* use enum to handle http request types
[citadel.git] / webcit / rss.c
index ab01a2aef1d598d1062a8966a3047c0bf2848969..09e17d0e4450df62b716408251eb335cc173642e 100644 (file)
@@ -43,7 +43,7 @@ void display_rss_control(char *reply_to, char *subject)
  * roomname the room we sould print out as rss 
  * request_method the way the rss is requested????
  */
-void display_rss(const StrBuf *roomname, StrBuf *request_method)
+void display_rss(const StrBuf *roomname)
 {
        message_summary *Msg;
        wcsession *WCC = WC;
@@ -156,7 +156,7 @@ void display_rss(const StrBuf *roomname, StrBuf *request_method)
        hprintf("Content-Type: application/rss+xml\r\n");
        hprintf("Server: %s\r\n", PACKAGE_STRING);
        hprintf("Connection: close\r\n");
-       if (!strcasecmp(ChrPtr(request_method), "HEAD"))
+       if (WCC->eReqType == eHEAD)
                return;
 
        /* <?xml.. etc confuses our subst parser, so do it here */