* output right HTTP-Headers when whining for another citserver version
authorWilfried Göesgens <willi@citadel.org>
Wed, 18 Mar 2009 19:48:35 +0000 (19:48 +0000)
committerWilfried Göesgens <willi@citadel.org>
Wed, 18 Mar 2009 19:48:35 +0000 (19:48 +0000)
webcit/webcit.c

index fdde5ef53de869668d7f243aefc24c420198f9d9..84ead4462da6382c33b1c276dce54377798dbb18 100644 (file)
@@ -845,6 +845,8 @@ void session_loop(HashList *HTTPHeaders, StrBuf *ReqLine, StrBuf *request_method
                                                MINIMUM_CIT_VERSION / 100,
                                                MINIMUM_CIT_VERSION % 100
                                        );
+                               hprintf("HTTP/1.1 200 OK\r\n");
+                               hprintf("Content-type: text/plain; charset=utf-8\r\n");
                                end_burst();
                                end_webcit_session();
                                goto SKIP_ALL_THIS_CRAP;