/*
- * Copyright (c) 1987-2012 by the citadel.org team
+ * Copyright (c) 1987-2013 by the citadel.org team
*
* This program is open source software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 3.
#define PORT_NUM 2000 /* port number to listen on */
#define DEVELOPER_ID 0
#define CLIENT_ID 4
-#define CLIENT_VERSION 813 /* This version of WebCit */
-#define MINIMUM_CIT_VERSION 813 /* Minimum required version of Citadel server */
-#define LIBCITADEL_MIN 813 /* Minimum required version of libcitadel */
+#define CLIENT_VERSION 829 /* This version of WebCit */
+#define MINIMUM_CIT_VERSION 829 /* Minimum required version of Citadel server */
+#define LIBCITADEL_MIN 821 /* Minimum required version of libcitadel */
#define DEFAULT_HOST "localhost" /* Default Citadel server */
#define DEFAULT_PORT "504"
#define TARGET "webcit01" /* Window target for inline URL's */
typedef struct _ParsedHttpHdrs {
int http_sock; /* HTTP server socket */
+ long HaveRange;
+ long RangeStart;
+ long RangeTil;
+ long TotalBytes;
const char *Pos;
StrBuf *ReadBuf;
int starttls(int sock);
extern SSL_CTX *ssl_ctx;
int client_read_sslbuffer(StrBuf *buf, int timeout);
-void client_write_ssl(const StrBuf *Buf);
+int client_write_ssl(const StrBuf *Buf);
#endif
extern int is_https;
void begin_critical_section(int which_one);
void end_critical_section(int which_one);
+void CheckGZipCompressionAllowed(const char *MimeType, long MLen);
extern void do_404(void);
void http_redirect(const char *);
long locate_user_vcard_in_this_room(message_summary **VCMsg,
wc_mime_attachment **VCAtt);
void http_transmit_thing(const char *content_type, int is_static);
+void http_transmit_headers(const char *content_type, int is_static, long is_chunked);
long unescape_input(char *buf);
void check_thread_pool_size(void);
void StrEndTab(StrBuf *Target, int tabnum, int num_tabs);