/*
- * $Id: http.cc,v 1.287 1998/06/25 20:08:54 wessels Exp $
+ * $Id: http.cc,v 1.288 1998/06/28 02:01:44 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
commSetTimeout(fd, -1, NULL, NULL);
commSetSelect(fd, COMM_SELECT_READ, NULL, NULL, 0);
comm_remove_close_handler(fd, httpStateFree, httpState);
- fwdUnregister(fd, httpState->fwdState);
storeComplete(entry); /* deallocates mem_obj->request */
+ /* call storeComplete BEFORE fwdUnregister or else fwdUnregister
+ * will storeAbort */
+ fwdUnregister(fd, httpState->fwdState);
pconnPush(fd, request->host, request->port);
httpState->fd = -1;
httpStateFree(-1, httpState);