* do linebuffered/non-blocking reads from http requests
[citadel.git] / webcit / rss.c
index fb6cb59267567c397f7a14221c8f6261df62994a..696ed019cc19773c02730dc62c4d2514c4db8abe 100644 (file)
@@ -47,7 +47,7 @@ void display_rss_control(char *reply_to, char *subject)
  * \param roomname the room we sould print out as rss 
  * \param request_method the way the rss is requested????
  */
-void display_rss(char *roomname, char *request_method)
+void display_rss(char *roomname, StrBuf *request_method)
 {
        int nummsgs;
        int a, b;
@@ -146,7 +146,7 @@ void display_rss(char *roomname, char *request_method)
        hprintf("Content-Type: application/rss+xml\r\n");
        hprintf("Server: %s\r\n", PACKAGE_STRING);
        hprintf("Connection: close\r\n");
-       if (!strcasecmp(request_method, "HEAD"))
+       if (!strcasecmp(ChrPtr(request_method), "HEAD"))
                return;
 
        /* <?xml.. etc confuses our subst parser, so do it here */