changeset 280:96e3418e1f5b

From Jani Monoses: fix HTTP loading, FIS delete
author gthomas
date Fri, 09 Aug 2002 13:20:32 +0000
parents 4682d305fd6a
children fc52fa818b5f
files packages/redboot/current/ChangeLog packages/redboot/current/src/flash.c packages/redboot/current/src/net/http_client.c
diffstat 3 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/redboot/current/ChangeLog
+++ b/packages/redboot/current/ChangeLog
@@ -1,3 +1,13 @@
+2002-08-09  Jani Monoses  <jani@iv.ro>
+
+	* src/net/http_client.c: use standard HTTP GET request ('/' 
+	instead of ' ' in HTTP/1.0) to work with all servers
+	
+2002-08-08  Jani Monoses  <jani@iv.ro>
+
+	* src/flash.c: fis delete should mark the slot as reusable
+	not just delete the area of flash used by the file.
+	
 2002-08-08  Gary Thomas  <gthomas@ecoscentric.com>
 2002-08-08  Motoya Kurotsu <kurotsu@allied-telesis.co.jp>	
 
--- a/packages/redboot/current/src/flash.c
+++ b/packages/redboot/current/src/flash.c
@@ -836,6 +836,7 @@ fis_delete(int argc, char *argv[])
     if ((stat = flash_erase((void *)img->flash_base, img->size, (void **)&err_addr)) != 0) {
         diag_printf("Error erasing at %p: %s\n", err_addr, flash_errmsg(stat));
     } else {
+        img->name[0] = (unsigned char)0xFF;    
         fis_update_directory();
     }
 }
--- a/packages/redboot/current/src/net/http_client.c
+++ b/packages/redboot/current/src/net/http_client.c
@@ -90,7 +90,7 @@ http_stream_open(connection_info_t *info
         *err = HTTP_OPEN;
         return -1;
     }
-    diag_sprintf(s->data, "GET %s HTTP 1.0\r\n\r\n", info->filename);
+    diag_sprintf(s->data, "GET %s HTTP/1.0\r\n\r\n", info->filename);
     __tcp_write_block(&s->sock, s->data, strlen(s->data));    
     s->avail = 0;
     s->open = true;