Log requests in PETSCII on CBMs in the non-CFS web server (as was already done in the CFS web server).

This commit is contained in:
oliverschmidt 2010-04-06 20:35:40 +00:00
parent 186ab03dd2
commit 5a3eb98937

View File

@ -30,7 +30,7 @@
*
* Author: Adam Dunkels <adam@sics.se>
*
* $Id: httpd.c,v 1.15 2010/04/06 20:16:25 oliverschmidt Exp $
* $Id: httpd.c,v 1.16 2010/04/06 20:35:40 oliverschmidt Exp $
*/
#include <stdio.h>
@ -267,8 +267,9 @@ PT_THREAD(handle_input(struct httpd_state *s))
strncpy(s->filename, &s->inputbuf[0], sizeof(s->filename));
}
petsciiconv_topetscii(s->filename, sizeof(s->filename));
webserver_log_file(&uip_conn->ripaddr, s->filename);
petsciiconv_toascii(s->filename, sizeof(s->filename));
s->state = STATE_OUTPUT;
while(1) {