diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2001-08-24 23:53:56 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2001-08-24 23:53:56 +0000 |
commit | 2ed41849501c730b36449163645c86db6ab1274e (patch) | |
tree | d9465ba4267acbe6f5ba8f2e39381e4b3ab38208 /apps | |
parent | 67b72f4c87e62aa809d6daa958538211febe2274 (diff) | |
download | ATCD-2ed41849501c730b36449163645c86db6ab1274e.tar.gz |
ChangeLogTag:Fri Aug 24 18:33:09 2001 Douglas C. Schmidt <schmidt@macarena.cs.wustl.edu>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/JAWS/ChangeLog | 7 | ||||
-rw-r--r-- | apps/JAWS/server/HTTP_Helpers.cpp | 2 | ||||
-rw-r--r-- | apps/JAWS/server/HTTP_Response.cpp | 9 |
3 files changed, 12 insertions, 6 deletions
diff --git a/apps/JAWS/ChangeLog b/apps/JAWS/ChangeLog index 4a763380925..9d7992eeea5 100644 --- a/apps/JAWS/ChangeLog +++ b/apps/JAWS/ChangeLog @@ -1,3 +1,10 @@ +Fri Aug 24 18:39:39 2001 Douglas C. Schmidt <schmidt@macarena.cs.wustl.edu> + + * server/HTTP_Response.cpp (normal_response), + * server/HTTP_Helpers.cpp (HTTP_decode_base64): Use delete [] buf + rather than delete buf. Thanks to Don Hinton for reporting + this. + Thu Aug 16 09:57:15 2001 Balachandran Natarajan <bala@cs.wustl.edu> * */Makefile: Updated dependencies. diff --git a/apps/JAWS/server/HTTP_Helpers.cpp b/apps/JAWS/server/HTTP_Helpers.cpp index 877c4d2bd97..1ad58b96451 100644 --- a/apps/JAWS/server/HTTP_Helpers.cpp +++ b/apps/JAWS/server/HTTP_Helpers.cpp @@ -87,7 +87,7 @@ HTTP_Helper::HTTP_mktime (const char *httpdate) { } - delete buf; + delete [] buf; tms.tm_year = HTTP_Helper::fixyear (tms.tm_year); tms.tm_mon = HTTP_Helper::HTTP_month (month); diff --git a/apps/JAWS/server/HTTP_Response.cpp b/apps/JAWS/server/HTTP_Response.cpp index 2ffebf27154..2e401add738 100644 --- a/apps/JAWS/server/HTTP_Response.cpp +++ b/apps/JAWS/server/HTTP_Response.cpp @@ -210,7 +210,7 @@ HTTP_Response::normal_response (void) else this->error_response (HTTP_Status_Code::STATUS_UNAUTHORIZED, "Invalid authorization attempt"); - delete buf; + delete [] buf; } break; @@ -353,9 +353,9 @@ HTTP_Response::build_headers (void) struct stat file_stat; // If possible, add the Content-length field to the header. - // @@ Note that using 'ACE_OS::stat' is a hack. Normally, - // a web browser will have a 'virtual' file system. In a - // VFS, 'stat' might not reference the correct location. + // @@ Note that using 'ACE_OS::stat' is a hack. Normally, a + // web browser will have a 'virtual' file system. In a VFS, + // 'stat' might not reference the correct location. if ((this->request_.type () == HTTP_Request::GET) && (ACE_OS::stat (this->request_.path (), &file_stat) == 0)) { @@ -368,7 +368,6 @@ HTTP_Response::build_headers (void) HTTP_HEADER[HTTP_HEADER_LENGTH++] = '\r'; HTTP_HEADER[HTTP_HEADER_LENGTH++] = '\n'; } - #else if (! this->request_.cgi ()) HTTP_HEADER = "HTTP/1.0 200 OK\r\n" |