]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/server/webcit.h
webcit-ng: fixed the way HTTP uploads are fed into the MIME Parser.
[citadel.git] / webcit-ng / server / webcit.h
index 0b415ade0885c52b259908b503fb725c9affc5b7..8af98ec26cf4ebd1cf21f5d991845e589ff9ab12 100644 (file)
@@ -64,7 +64,8 @@ struct http_transaction {                     // The lifetime of an HTTP request goes through this
        char *http_version;                     // stack and sent back down to the web server, which transmits it to
        char *site_prefix;                      // the client.
        Array *request_headers;
-       char *request_body;
+       char *request_body_with_synth_headers;  // This is the request body with some synthetic headers prepended into it.
+       char *request_body;                     // this is just going to be a pointer into request_body_with_synth_headers
        long request_body_length;
        Array *request_parms;                   // anything after the "?" in the URL
        int response_code;
@@ -179,3 +180,4 @@ int webcit_tcp_server(const char *ip_addr, int port_number, int queue_len);
 void UrlizeText(StrBuf* Target, StrBuf *Source, StrBuf *WrkBuf);
 void json_render_one_message(struct http_transaction *h, struct ctdlsession *c, long msgnum);
 void upload_files(struct http_transaction *h, struct ctdlsession *c);
+struct uploaded_file pop_upload(char *id);