Commit Graph

22 Commits

Author SHA1 Message Date
goldsimon
28fe0060d9 httpd:
- separated content-types from other header fields to make it easier to add more content types (no manual indexing required);
- added content-type for pdf, fixed content-type for javascript (no "x-");
2014-12-17 10:40:16 +01:00
Simon Goldschmidt
1e04deb667 makefsdata.c: minimal check if given path is OK 2014-05-15 20:50:22 +02:00
goldsimon
dc27bc8c07 makefsdata: don't use FindFirstFile to see if a directory exist but CHDIR() to it directly 2014-05-06 09:30:08 +02:00
Simon Goldschmidt
9f6dc6ad94 makefsdata: tried to fix another warning from static code analysis 2014-04-30 22:15:59 +02:00
goldsimon
0007b4e6ba Multiple fixes found by coverity scan 2014-04-30 12:25:40 +02:00
Simon Goldschmidt
ec429c725a Fixed bug #36374 makefsdata.exe can't handle files with non-C characters (allow only 'A-Z', 'a-z', '0-9' and '_' for C variable names) 2012-05-02 22:19:30 +02:00
Simon Goldschmidt
7546907c7b makefsdata:
- fixed typo (struct ffblk, not fflbk);
- changed include path to be relative to lwip's 'include' dir
2011-11-25 17:59:09 +01:00
Simon Goldschmidt
d1bf1ee0da httpd + makefsdata:
- added delayed open/read functionality (so that SSI code can delay sending of a file until internal data is available);
- clean up fs-handling: additional read is not required with our current fs implementation;
- kill oldest connection when running out of http_state memory;
- splitted SSI state into its own struct so that non-SSI pages don't consume too much memory (SSI buffer can get quit big);
- added support for HTTP/1.1 persistent connections (use the '-11' switch of makefsdata; not available for SSI files since we cannot calculate the file length in advance);
- splitted the unreadably-long function http_send_data into multiple smaller functions;
2011-09-04 19:26:46 +02:00
goldsimon
cf57b51527 Adapted include path to inet_chksum.c 2011-07-06 07:15:13 +00:00
goldsimon
c0b51ff573 Fixed HTTP header for 400 (Bad Request) and 501 (Not Implemented) 2010-07-07 08:17:12 +00:00
goldsimon
4adc78384b Minor: added newlines in console output 2010-07-05 14:21:50 +00:00
goldsimon
4b47d17a37 -f argument handler didn't copy the full filename ... :-) 2010-04-01 13:02:58 +00:00
goldsimon
62ea62ffc3 Fixed compiler warnings 2010-04-01 12:57:45 +00:00
goldsimon
30d352cec7 Don't include any directory starting with a dot (to not include my ".svn" directories), added parameter "-f:<filename>" to output to another file than the default "fsdata.c" 2010-04-01 12:49:08 +00:00
goldsimon
2689478bbb Fixed compilation under WIN32 (htons etc. was duplicate) 2010-04-01 12:25:46 +00:00
goldsimon
93a0e58ea2 Added support for precalculated checksum and (pregenerated) HTTP/1.1 headers ("connection: close" and "content-length") 2010-03-18 06:34:35 +00:00
goldsimon
05c30ba213 Speed up generating big files 2010-03-14 13:25:49 +00:00
goldsimon
1f93022b83 Moved some parts of the HTTP-header related code to a new file to share it between httpd.c and makefsdata.c, regenerated fsdata.c 2010-02-19 16:20:25 +00:00
goldsimon
4ec673b17d Merged httpd from TI Luminary: added basic SSI and CGI support, added support for dynamic HTTP header generation 2010-02-17 21:19:17 +00:00
goldsimon
9b45317f54 Fixed makefsdata portability (don't use backslash in include) 2010-01-20 20:51:05 +00:00
goldsimon
268bb23f11 First parse subdirectories, then files (to get main directory to the front of the list) 2009-11-01 19:22:45 +00:00
goldsimon
e142aced6f Added makefsdata ported to C (by Jim Pettinato, extended by me) 2009-11-01 18:27:22 +00:00