16 Commits

Author SHA1 Message Date
Nick Mathewson
6466e88ac1 Use FindClose for handle from FindFirstFile in http-server.c
Noted by Miles Chan as issue #145
2014-08-29 14:31:07 -04:00
Gyepi Sam
c322c2077e Fix a mistake in evbuffer_remove() arguments in example http server code
(commit message by nickm)
2013-01-22 16:59:07 +00:00
Nick Mathewson
7206e8cdd4 Suppress a gcc warning from ignoring fwrite return in http-sample.c
Found by Steve Snyder
2012-01-16 14:45:31 -05:00
Harlan Stenn
7c11e51e1a Clean up some problems identified by Coverity. 2011-08-28 13:44:33 -04:00
Peter Rosin
70be7d17e4 MSVC does not provide S_ISDIR, so provide it manually. 2011-05-25 19:44:06 -04:00
Nick Mathewson
2e9f665548 Fix a couple of memory leaks in samples/http-server.c. Found by Dave Hart. 2011-04-14 14:17:58 -04:00
Nick Mathewson
4eb281c8a9 FIX: comment internal headers used in sample code. 2011-02-22 00:24:57 -05:00
Nick Mathewson
eb692be9c8 NM: Fix sample/http-server ipv6 fixes
Fix 1: Use #include "../xyz" rather than #include <../xyz>

Fix 2: util-internal.h includes ipv6-internal.h, which in turn defines
       a replacement AF_INET6 on platforms that don't have it.  As such,
       the AF_INET6 checks shouldn't be needed.  (right?)
2011-02-22 00:24:57 -05:00
Harlan Stenn
bbf55150b6 Include util-internal.h as needed to build on platforms with no sockaddr_storage 2011-02-22 00:24:54 -05:00
Harlan Stenn
10c834c4df Include arpa/inet.h as needed on HPUX 2011-02-22 00:24:36 -05:00
Nick Mathewson
22f4af6580 Remove end-of-line whitespace 2010-12-09 11:43:12 -05:00
Nick Mathewson
13fd242ddb Fix win32 build of http-server.c with unicode enabled 2010-11-30 00:53:16 -05:00
Nick Mathewson
18d0327666 make http-server example code build on win32 2010-11-29 20:39:09 -05:00
Nick Mathewson
ad66dfd064 Fix http-server.c compilation on freebsd 2010-11-29 20:13:19 -05:00
Nick Mathewson
4881778c5c Fix a misplaced ) in http_server.c 2010-11-26 13:28:48 -05:00
Nick Mathewson
4e794d5d39 Add a basic example of how to write a static HTTP server. 2010-11-26 12:58:22 -05:00