1. 07 Feb, 2018 1 commit
    • Dmitry Frank's avatar
      Implement mg_http_parse_header2() · b9b20c64
      Dmitry Frank authored
      Which is a replacement of (deprecated) `mg_http_parse_header`, but,
      similarly to `asprintf`, allocates a new buffer if the client-provided
      one is not large enough.
      
      Also use it throughout mongoose code, and thus some header-related
      limitations are removed; in particular,
      https://github.com/cesanta/mongoose/issues/813 is fixed.
      
      CL: Mongoose Web Server: Deprecate `mg_http_parse_header()` and implement `mg_http_parse_header2()` instead, which allocates a new buffer if the client-provided one is not large enough (similarly to `asprintf`).
      CL: Mongoose Web Server: Fix limitations of header value lengths, e.g. when parsing authentication headers such as nonce, etc.
      
      PUBLISHED_FROM=c75b1bbbbdb294ea85075ce69b1368f115fdd1ef
      b9b20c64
  2. 02 Feb, 2018 3 commits
  3. 01 Feb, 2018 2 commits
    • Dmitry Frank's avatar
      Fix nonce in digest authentication · 47abc641
      Dmitry Frank authored
      CL: Mongoose Web Server: Digest authentication: Fix nonce validity check (expired nonce or nonce from the future did not cause the the check to fail)
      CL: Mongoose Web Server: Digest authentication: Fix nonce request value; it worked before because nonce validity check was broken as well
      CL: Mongoose Web Server: Digest authentication: Add `nonce` argument to `mg_http_create_digest_auth_header()`: clients should use the value received from the server's authentication request.
      
      Resolves https://github.com/cesanta/mongoose/issues/809
      
      PUBLISHED_FROM=5e59f90ed6b2a4311ed6763159da81c2aaf6af4c
      47abc641
    • Dmitry Frank's avatar
      Improve websocket implementation · 7519b2ef
      Dmitry Frank authored
      CL: Mongoose Web Server: Websocket: Respond to Ping with Pong
      CL: Mongoose Web Server: Websocket: Properly close a connection with Close frame (in response to a client's close and when protocol failure is detected)
      CL: Mongoose Web Server: Websocket: Fix support of fragmented messages
      CL: Mongoose Web Server: Websocket: Add support for control frames interjected in the middle of a fragmented message
      
      PUBLISHED_FROM=e2b3794aaacc64633540c493194cccc62afa2077
      7519b2ef
  4. 28 Nov, 2017 2 commits
  5. 16 Oct, 2017 1 commit
  6. 22 Aug, 2017 1 commit
  7. 21 Jul, 2017 1 commit
    • Deomid Ryabkov's avatar
      Make mg_url_encode public · 0fba87c7
      Deomid Ryabkov authored
      Change the API to heap-allocate the string and get rid of a bunch of fat stack buffers.
      
      PUBLISHED_FROM=c793dc64a9a044a9769d92ea16859f5d704a2181
      0fba87c7
  8. 17 Jul, 2017 2 commits
  9. 02 Jul, 2017 1 commit
  10. 01 Jul, 2017 1 commit
  11. 28 Jun, 2017 1 commit
  12. 26 Jun, 2017 1 commit
  13. 04 Jun, 2017 1 commit
  14. 06 May, 2017 1 commit
    • Sergey Lyubka's avatar
      Move struct http_message::body · cfe77a3d
      Sergey Lyubka authored
      Rationale: this is the optimisation to make JS FFI-ed API
      work nicer. We don't have strucuture introspection now,
      and do not generate offsets automatially. Thus, using a
      stable well-known location of the parsed message body is
      better, in case of number of HTTP headers macro changes.
      
      PUBLISHED_FROM=55bf25ac77060a9c81dfecd6601f037562530801
      cfe77a3d
  15. 27 Apr, 2017 1 commit
  16. 24 Apr, 2017 1 commit
  17. 15 Apr, 2017 1 commit
  18. 24 Mar, 2017 1 commit
  19. 21 Mar, 2017 2 commits
  20. 20 Mar, 2017 1 commit
  21. 15 Mar, 2017 2 commits
  22. 11 Mar, 2017 1 commit
  23. 01 Mar, 2017 2 commits
  24. 28 Feb, 2017 2 commits
  25. 27 Feb, 2017 1 commit
  26. 24 Feb, 2017 1 commit
    • Dmitry Frank's avatar
      Fix subscription to wildcard topics · 39429149
      Dmitry Frank authored
      `mg_mqtt_match_topic_expression()` and friends are public now.
      
      So far, only `#` is supported.
      
      PUBLISHED_FROM=20c031bcf34be84771c4a9c456318634eb9a517c
      39429149
  27. 15 Feb, 2017 1 commit
  28. 09 Feb, 2017 1 commit
  29. 06 Feb, 2017 1 commit
  30. 02 Feb, 2017 1 commit
  31. 30 Jan, 2017 1 commit