Commit Graph
619 Commits
Author SHA1 Message Date
Christian Grothoff 092b370587 undo, duplicated functionality 2019-07-22 16:11:10 +02:00
Christian Grothoff 9c7dc624ac unify 2019-07-22 12:37:45 +02:00
Christian Grothoff 3d1b941137 introducte MHD_RO_FREE_FUNCTION as proposed by Nicolas Mora on the list 2019-07-22 11:49:42 +02:00
Tim Rühsen 3751044dc8 Add callback to allow OCSP stapling 2019-07-17 12:50:15 +02:00
Evgeny Grin (Karlson2k) 90eb831b28 Bump MHD_VERSION to indicate developer version 2019-07-05 23:30:19 +03:00
Evgeny Grin (Karlson2k) 8688527894 Releasing GNU libmicrohttpd 0.9.65 2019-07-05 23:18:51 +03:00
Evgeny Grin (Karlson2k) d84b96bb7d Bump MHD_VERSION to signal dev version 2019-06-09 23:19:20 +03:00
Evgeny Grin (Karlson2k) 9ddf07f81e Releasing 0.9.64 2019-06-09 20:29:37 +03:00
Evgeny Grin (Karlson2k) e9493e0d34 microhttpd.h: reordered includes for better compatibility,
Updated ChangeLog
2019-06-09 20:03:20 +03:00
Evgeny Grin (Karlson2k) fb550a4939 microhttpd.d: fixed Doxy for MHD_get_reason_phrase_for() 2019-06-09 12:14:31 +03:00
Evgeny Grin (Karlson2k) 6c1d4ad701 Updated HTTP status codes 2019-06-09 12:14:30 +03:00
Evgeny Grin (Karlson2k) badb814e44 microhttpd.h: moved together deprecated and non-standard HTTP status codes,
deprecated more HTTP status codes
2019-06-09 12:14:29 +03:00
Evgeny Grin (Karlson2k) b0e9299664 microhttpd.h: moved deprecated HTTP code definitions to the end of the list 2019-06-09 12:14:29 +03:00
Evgeny Grin (Karlson2k) d496504d61 libmicrohttpd.h: Updated HTTP methods and headers 2019-06-09 12:14:28 +03:00
Evgeny Grin (Karlson2k) edfdbbf794 Fixed doxygen comments,
Fixed spelling in comments
2019-05-21 22:22:22 +03:00
Evgeny Grin (Karlson2k) 2c5033377f Spelling fixes 2019-05-21 17:57:04 +03:00
Evgeny Grin (Karlson2k) 650d4685f7 Added MHD_get_connection_values_n() function to get keys and
values with size. Can get keys and values with binary zero.
2019-05-03 19:06:19 +03:00
Evgeny Grin (Karlson2k) cc5032b853 Added MHD_lookup_connection_value_n(). 2019-05-03 16:48:57 +03:00
Evgeny Grin (Karlson2k) bcdff02696 Disallow binary zero in header and cookies. 2019-05-03 15:44:12 +03:00
Evgeny Grin (Karlson2k) 8aa7d23219 Partial revert of 1b610e5b13.
Implemented new functions for key and value with binary zero.
Significantly speedup search for key by using key size.
2019-05-01 22:12:24 +03:00
Evgeny Grin (Karlson2k) d9506b7d29 Headers: better compatibility with MSVC compiler 2019-04-21 14:40:45 +03:00
Christian Grothoff 1917b86699 add flags for TLS option control 2019-04-15 17:38:16 +02:00
Christian Grothoff 1b610e5b13 allow binary zero in unescaped GET arguments (see mailinglist) 2019-03-20 10:46:21 +01:00
Christian Grothoff 154d0fd6a1 adjusting digest auth to previous regression fix, releasing 0.9.63 2019-02-10 17:13:03 +01:00
Christian Grothoff d640ad8212 preliminary patch for query string issue reported on the ML 2019-02-07 16:16:56 +01:00
Christian Grothoff b7052c0415 Check should (indeed) be for GNUTLS_E_AGAIN.
Lasa Martxel wrote:
Hello,

I have found the following code in daemon.c file, lines 1449 to 1467:

      if (0 >= res)
        {
          if (GNUTLS_E_INTERRUPTED != res)
            {
              urh->app.celi &= ~MHD_EPOLL_STATE_WRITE_READY;

              if (GNUTLS_E_INTERRUPTED != res)

(GNUTLS_E_INTERRUPTED != res) is checked twice.

In the read part (a few lines above), GNUTLS_E_INTERRUPTED != res is checked first and then GNUTLS_E_AGAIN != res. It looks like something similar should be done here, but I’m not sure.

Thanks,

Martxel
2018-12-19 00:06:48 +01:00
Christian Grothoff 273a6df932 remove requirement for VLA in digestauth.c logic 2018-12-11 10:06:42 +01:00
Christian Grothoff 18a607a518 use WSA_FLAG_OVERLAPPED in W32 sockets as per suggestion from Johnathan McDougall on the mailinglist 2018-12-08 23:18:08 +01:00
Christian Grothoff 517c4a81c7 releasing libmicrohttpd 0.9.62 2018-12-08 23:11:13 +01:00
Christian Grothoff 2897bd23e5 add test for RFC 7616 and document new API 2018-12-08 22:54:33 +01:00
Christian Grothoff bcba3f58c5 preliminary implementation for RFC 7616 support 2018-12-08 17:35:37 +01:00
Christian Grothoff 0eefd20ba3 add build option to compile MHD without threads 2018-12-07 12:40:40 +01:00
silvioprog 22c08b5fd7 Renamed all occurrences from _model(s)_ to _mode(s)_. 2018-12-06 13:26:39 -03:00
Christian Grothoff 7b92bb1cde releasing 0.9.61 2018-11-20 22:23:03 +01:00
Christian Grothoff 2962b6e48d add MHD_create_response_from_buffer_with_free_callback 2018-11-08 14:53:46 +01:00
Christian Grothoff 10bdf39505 add MHD_create_response_from_buffer_with_free_callback 2018-11-08 14:53:19 +01:00
Christian Grothoff acd39ed23d releasing libmicrohttpd 0.9.60 2018-11-06 19:55:27 +01:00
Christian Grothoff 9199e5aa3a From: Gauthier Haderer <ghaderer@wyplay.com>
Date: Mon, 15 Oct 2018 14:11:39 +0200
Subject: [PATCH] Add response flag to force version to 1.0 and maintain
 connection management.

The existing MHD_RF_HTTP_VERSION_1_0_ONLY flag already changes MHD's
behavior to apply HTTP 1.0 rules for connection management. When
enabled, MHD sends a response using the same version as used in the
request (is this normal?).

What I want is MHD responding as a HTTP 1.0 server with support for
connection management headers would do. This is what the
MHD_RF_HTTP_VERSION_1_0_RESPONSE response flag is for.

You can even combine it with MHD_RF_HTTP_VERSION_1_0_ONLY to change the
response's HTTP version while maintaining strict compliance with HTTP
1.0 regarding connection management.

This solution is not perfect as this flag is set on the response which
is created after header processing. So MHD will behave as a HTTP 1.1
server until the response is queued. It means that an invalid HTTP 1.1
request will fail even if the response is sent with HTTP 1.0 and the
request would be valid if interpreted with this version. For example,
this request will fail in strict mode:

GET /dummy HTTP/1.1

as the Host header is missing and is mandatory in HTTP 1.1, but it
should succeed when interpreted with HTTP 1.0.

I don't think this is a big issue in practice. Besides, being able to
change the HTTP version on a response basis is really convenient when
using MHD in a test framework where we need to validate a client against
HTTP 1.1 AND HTTP 1.0.
2018-10-16 20:44:39 +02:00
Christian Grothoff 605e35bb6e style fixes 2018-08-18 13:26:38 +02:00
silvioprog 60fe2b37f7 Small spell correction. 2018-07-31 14:45:08 -03:00
Christian Grothoff 2c47a23dec integrate TLS PSK patch from Tal Moaz (plus documentation, plus style and bugfixes 2018-07-14 13:27:45 +02:00
Christian Grothoff 2ed04522e2 add support for digest auth with hashed password 2018-07-14 13:27:45 +02:00
Christian Grothoff 7d7ccbcdbd Hi Christian,
Thank you!  Very cool to see the example working.  Funny, I
implemented MHD_get_timeout in the main loop in my project but in all
my tests it always returned MHD_NO, so I assumed it was not applicable
to my use case and didn't include it in the example I wrote.  But I
didn't make the connection that it *also* had to be called after
MHD_resume_connection until your response here.  Would you consider
the attached patch?   It adds one line to the docs that I'm quite sure
would have pointed me in the right direction had it been there before.

Thanks!
Bob
2018-03-14 05:22:48 +01:00
Christian Grothoff a7b255811e do not use MHD_NONNULL on w32 2018-03-04 11:40:08 +01:00
Christian Grothoff a6d885783c fix enum inconsistencies 2018-03-02 22:38:19 +01:00
Christian Grothoff 5717a9ec22 expand strictness to cover spaces in URL 2018-03-01 13:29:58 +01:00
Christian Grothoff 785ae52b3e include headers in dist, but do not yet install those in the system (too early) 2018-02-28 22:30:34 +01:00
Tim Rühsen 37b6d7a491 Fix make distcheck 2018-02-28 22:29:34 +01:00
Christian Grothoff fc495439b4 call completion handler also for upgrade connections 2018-02-27 23:28:01 +01:00
Christian Grothoff e5c2f9a339 add remaining missing symbols for library to fully link 2018-02-18 12:31:35 +01:00