Commit Graph
4924 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) e93439da71 Added function for detection of token inside comma-separated string, added tests 2017-05-09 22:20:42 +03:00
Evgeny Grin (Karlson2k) b03ee4c52a Fixed missing include 2017-05-09 22:20:42 +03:00
Evgeny Grin (Karlson2k) 4809ee654a Revert: continue match footers in MHD_get_response_header().
This is a partial revert of 6894504f51
2017-05-09 12:31:05 +03:00
Evgeny Grin (Karlson2k) 6894504f51 Fixed MHD_get_response_header(): used case-insensitive match for header name, use only headers 2017-05-09 12:22:50 +03:00
Evgeny Grin (Karlson2k) 8a88bc9335 microhttpd.h: deprecate unused MHD_RESPONSE_HEADER_KIND value 2017-05-06 22:02:30 +03:00
Evgeny Grin (Karlson2k) b99c290230 Prevent repetitive analysing of headers to detect Keep-Alive/Close of connection. 2017-05-05 21:05:49 +03:00
Evgeny Grin (Karlson2k) 98a4f3f4fe Used local "mhd_limits.h" for better compatibility 2017-05-05 13:42:18 +03:00
Evgeny Grin (Karlson2k) d9df0418b3 connection.c: more cleanup after completed of serving request. 2017-05-05 13:29:13 +03:00
Evgeny Grin (Karlson2k) ae6ab22d2b transmit_error_response(): allow to transmit error even if response was set. 2017-05-05 12:55:47 +03:00
Evgeny Grin (Karlson2k) 2849ef7fb0 Fixed and formatted b4216c60fd 2017-05-05 12:48:23 +03:00
José Bollo b4216c60fd Check response existence on upgrade
When a connection upgrade is requested and when the
request sent an error reply, the response is most of
the time already sent when the test on
connection->response->upgrade_handler is made, leading
to dereferencing NULL.

Two possibilities exist:

  NULL == connection->response || NULL == connection->response->upgÿrade_handler

or

  NULL != connection->response && NULL == connection->response->upgraÿde_handler

The first is prefered because it is probably safer to close the
connection in that case.

Change-Id: Ie6e7fc165f7fe3635ade0952bb34a0b937d38716
Signed-off-by: José Bollo <jobol@nonadev.net>
Signed-off-by: Evgeny Grin (Karlson2k) <k2k@narod.ru>
2017-05-04 23:33:34 +03:00
Christian Grothoff 8823f63b50 fix dist issue v0.9.54 2017-05-02 18:55:44 +02:00
Christian Grothoff 76cf7d7f58 documentation, adding MHD_CONNECTION_INFO_REQUEST_HEADER_SIZE, releasing 0.9.54 2017-05-02 18:53:50 +02:00
Evgeny Grin (Karlson2k) 33f121a4f6 Replaced flags MHD_USE_PEDANTIC_CHECKS and MHD_USE_PERMISSIVE_CHECKS by
single option MHD_OPTION_STRICT_FOR_CLIENT.
2017-04-27 22:36:09 +03:00
Evgeny Grin (Karlson2k) 4c0cf12617 Fixed processing MHD_OPTION_HTTPS_CRED_TYPE in MHD_OPTION_ARRAY.
Underlying type can be not int.
2017-04-27 22:04:36 +03:00
Evgeny Grin (Karlson2k) a9c191d2db mhd_str.c: fixed c/p error in comment 2017-04-26 16:09:18 +03:00
Evgeny Grin (Karlson2k) ccfe7bafaf reason_phrase.c: Fixed shift in HTTP reasons strings.
Added test for HTTP reasons strings.
2017-04-26 15:22:46 +03:00
Evgeny Grin (Karlson2k) b4a7abf366 MHD_start_daemon(): allow MHD_USE_POLL only with MHD_USE_THREAD_PER_CONNECTION for backward compatibility.
New applications are advised to use MHD_USE_INTERNAL_POLLING_THREAD with MHD_USE_THREAD_PER_CONNECTION.
2017-04-25 19:27:03 +03:00
Christian Grothoff b57456c2e6 relax space-in-field-name checks only if new MHD_USE_PERMISSIVE_CHECKS flag is set 2017-04-24 17:30:26 +02:00
Christian Grothoff e95ec4874d enforce RFC 7230 no-whitespace in header field name rule if MHD_USE_PEDANTIC_CHECKS is set 2017-04-23 20:07:10 +02:00
Christian Grothoff ef49636130 replace sprintf() with MHD_snprintf_() 2017-04-23 19:21:35 +02:00
Evgeny Grin (Karlson2k) a6b47251b8 Fixed support for old libgcrypt on W32 with W32 threads. 2017-04-22 20:43:17 +03:00
Evgeny Grin (Karlson2k) 541d62839a configure: refactoring to be consistent with other configure variables 2017-04-14 23:21:32 +03:00
Evgeny Grin (Karlson2k) bc005396f6 configure: check for invalid "with-thread" parameters 2017-04-14 23:14:15 +03:00
Evgeny Grin (Karlson2k) ac85c57139 connection.c: silent compiler warning 2017-04-12 22:48:10 +03:00
Evgeny Grin (Karlson2k) 01df8861c1 Fixed GNU/Linux builds without epoll 2017-04-12 21:11:28 +03:00
Evgeny Grin (Karlson2k) 54def24e97 Releasing GNU libmicrohttpd 0.9.53 v0.9.53 2017-04-11 22:18:10 +03:00
Evgeny Grin (Karlson2k) 7fcab91f25 Added VS2017 project files to tarball 2017-04-11 21:54:22 +03:00
Evgeny Grin (Karlson2k) e51f5cd645 Updated more M4 autoconf macros 2017-04-11 21:38:56 +03:00
Christian Grothoff df295571f2 clarify comment 2017-04-11 20:37:43 +02:00
Evgeny Grin (Karlson2k) 443d072f39 test_get_response_cleanup: ignore SIGPIPE on Solaris 2017-04-10 23:43:59 +03:00
Evgeny Grin (Karlson2k) b70a0b2b66 Cosmetic fixes 2017-04-10 20:55:12 +03:00
Evgeny Grin (Karlson2k) fea6bf18a1 HTTPS test fixes and improvements:
always skip tests if libcurl do not support HTTPS (instead of failing)
return 99 in case of global errors (MHD-unrelated)
print error result if test if failed
fixed ignored result of epoll test in test_https_get_select
allow compilation by C89 compiler
2017-04-10 20:00:02 +03:00
Evgeny Grin (Karlson2k) ab406a9e6a configure: better test for "-Werror=attributes" 2017-04-10 18:39:47 +03:00
Evgeny Grin (Karlson2k) 4a4e93fb5a Fixed compatibility with platforms without poll() 2017-04-10 18:03:11 +03:00
Evgeny Grin (Karlson2k) 830433ddd6 Updated M4 autoconf-archive macros to latest versions 2017-04-10 00:42:50 +03:00
Evgeny Grin (Karlson2k) ed2171b2d0 configure: use libgcrypt CPPFLAGS and LDFLAGS for building with GnuTLS if they are used in configure 2017-04-10 00:23:28 +03:00
Evgeny Grin (Karlson2k) 6c2c0f57e4 configure: fixed detection of "pthread_np.h" on OpenBSD 2017-04-09 20:38:27 +03:00
Evgeny Grin (Karlson2k) 9d9a9a3f00 HTTPS tests: improved compatibility with some platforms/libcurl versions 2017-04-09 18:08:05 +03:00
Evgeny Grin (Karlson2k) 902432c452 mhd_sockets.c: Fixed compiler warning 2017-04-06 23:09:56 +03:00
Evgeny Grin (Karlson2k) 0bf9a2285e zzuf tests: make compatible with *BSD by replacing obsoleted setpgrp() with setpgid(). 2017-04-06 23:03:19 +03:00
Evgeny Grin (Karlson2k) 58274f943d Used "127.0.0.1" instead of "localhost" in all tests to avoid accidental try by IPv6 2017-04-06 22:17:04 +03:00
Evgeny Grin (Karlson2k) 8851d88e40 Fixed hypothetical situation when timeout could be larger than possible to measure.
Fixed detecting real closest timeout deadline when value wraps upper limit.
Fixed compiler warnings.
2017-04-05 23:21:59 +03:00
Evgeny Grin (Karlson2k) 076cbfbe0b daemon.c: Removed useless extra ";" 2017-04-05 18:58:57 +03:00
Evgeny Grin (Karlson2k) 3ed1305167 Updated autoinit_funcs.h to latest upstream version with proper support of Oracle/Sun compiler. 2017-04-05 14:18:58 +03:00
Evgeny Grin (Karlson2k) 0f30ecc819 Fixed wrong macro name in 218694a400 2017-04-05 13:05:12 +03:00
Evgeny Grin (Karlson2k) 218694a400 Converted many 'strlen()' from run-time to compile-time processing 2017-04-05 12:56:40 +03:00
Evgeny Grin (Karlson2k) 6ac4608cd8 digestauth.c: fixed snprintf() error detection, used calloc instead of malloc (security). 2017-04-05 11:40:59 +03:00
Evgeny Grin (Karlson2k) e30143507e Fixed some compiler warnings 2017-04-05 11:33:33 +03:00
Evgeny Grin (Karlson2k) c02d8f0332 ChangeLog: added missing entries. 2017-03-30 19:13:54 +03:00