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. 22 Aug, 2017 1 commit
  6. 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
  7. 02 Jul, 2017 1 commit
  8. 01 Jul, 2017 1 commit
  9. 28 Jun, 2017 1 commit
  10. 26 Jun, 2017 1 commit
  11. 04 Jun, 2017 1 commit
  12. 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
  13. 27 Apr, 2017 1 commit
  14. 24 Apr, 2017 1 commit
  15. 24 Mar, 2017 1 commit
  16. 21 Mar, 2017 1 commit
    • Yiming Sun's avatar
      Fix typo · 14094aae
      Yiming Sun authored
      PUBLISHED_FROM=56fdeaf4965ef26c398267c8656735bb52e45085
      14094aae
  17. 20 Mar, 2017 1 commit
  18. 15 Mar, 2017 2 commits
  19. 11 Mar, 2017 1 commit
  20. 01 Mar, 2017 2 commits
  21. 28 Feb, 2017 1 commit
  22. 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
  23. 15 Feb, 2017 1 commit
  24. 09 Feb, 2017 1 commit
  25. 30 Jan, 2017 1 commit
  26. 09 Jan, 2017 1 commit
  27. 25 Nov, 2016 1 commit
  28. 18 Nov, 2016 1 commit
  29. 17 Nov, 2016 1 commit
  30. 14 Nov, 2016 2 commits
  31. 11 Nov, 2016 1 commit
  32. 10 Nov, 2016 2 commits