* Removed the gzip compression stuff due to bugs in Internet Explorer.
[citadel.git] / webcit / context_loop.c
index b13ef6fff7b46a7d9cca17835a784d299ebff9a1..8eddaea805023bdfabee0ce4d95c4761a58cee54 100644 (file)
@@ -232,13 +232,6 @@ void context_loop(int sock)
        int desired_session = 0;
        int got_cookie = 0;
        struct wcsession *TheSession, *sptr;
-       int gzip = 0;
-
-#ifdef HAVE_ZLIB_H
-       int i;
-       char enc[SIZ];
-       char encodings[SIZ];
-#endif
 
        /*
         * Find out what it is that the web browser is asking for
@@ -253,18 +246,6 @@ void context_loop(int sock)
                        got_cookie = 1;
                }
 
-#ifdef HAVE_ZLIB_H
-               if (!strncasecmp(buf, "Accept-encoding: ", 17)) {
-                       extract_token(encodings, &buf[17], 0, ';');
-                       for (i=0; i<num_tokens(encodings, ','); ++i) {
-                               extract_token(enc, encodings, i, ',');
-                               if (!strcasecmp(enc, "gzip")) {
-                                       gzip = 1;
-                               }
-                       }
-               }
-#endif
-
                hptr = (struct httprequest *)
                        malloc(sizeof(struct httprequest));
                if (req == NULL)
@@ -355,7 +336,7 @@ void context_loop(int sock)
        pthread_setspecific(MyConKey, (void *)TheSession);
        TheSession->http_sock = sock;
        TheSession->lastreq = time(NULL);                       /* log */
-       session_loop(req, gzip);        /* perform the requested transaction */
+       session_loop(req);              /* perform the requested transaction */
        pthread_mutex_unlock(&TheSession->SessionMutex);        /* unbind */
 
        /* Free the request buffer */