X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit%2Fwebcit.c;h=4e3b2f86a3975099dd38b923a91f484dd37859f4;hp=91fc47e26424c64bf0d85a0ec173554fed1cb5ec;hb=b98d9f087b3a24a9549470ab066c2aea187ecfba;hpb=0bb85075081ecab7a189484af2438116982a3030 diff --git a/webcit/webcit.c b/webcit/webcit.c index 91fc47e26..4e3b2f86a 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -141,7 +141,9 @@ void output_headers( int do_httpheaders, /* 1 = output HTTP headers */ wcsession *WCC = WC; char httpnow[128]; - if (WCC->Hdr->HaveRange > 1) + if (WCC->isFailure) + hprintf("HTTP/2.2 500 Internal Server Error"); + else if (WCC->Hdr->HaveRange > 1) hprintf("HTTP/1.1 206 Partial Content\r\n"); else hprintf("HTTP/1.1 200 OK\r\n"); @@ -502,7 +504,7 @@ void push_destination(void) { } FreeStrBuf(&WCC->PushedDestination); - WCC->PushedDestination = NewStrBufDup(SBSTR("url")); + WCC->PushedDestination = NewStrBufDup(sbstr("url")); if (verbose) syslog(LOG_DEBUG, "Push: %s", ChrPtr(WCC->PushedDestination)); wc_printf("OK");