diff --git a/ReleaseNotes.md b/ReleaseNotes.md index 9ecf1c6..90e822c 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -1,5 +1,23 @@ ## Release Notes +### 0.9.0 + +*Low level* +- Experimental TLS code (not for use in a wild yet) +- Simple crab::optional for using older C++ standard +- Random is adapted to std containers + +*HTTP* +- Streaming of HTTP bodies (both upload and download) +- New HTTP URI parser by AK + +*Bugs fixed* +- WebSockets now support control frames between message chunks + +*Incompatible changes* +- New callbacks design for WebSockets and postponing normal HTTP responses +- Stricter integer parser might break existing products + ### 0.8.0 *Low level* diff --git a/include/crab/crab_version.hpp b/include/crab/crab_version.hpp index 8ee6f2b..6ba7c13 100644 --- a/include/crab/crab_version.hpp +++ b/include/crab/crab_version.hpp @@ -49,10 +49,10 @@ #define CRAB_INLINE inline #endif -#define CRAB_BRANCH " (branch dev)" +#define CRAB_BRANCH "" // No tricks, we wish to be easily includable in header-only mode -#define CRAB_VERSION "0.8.1" +#define CRAB_VERSION "0.9.0" // Not in cmake, we wish to be easily includable in header-only mode #if CRAB_TLS #define CRAB_TLS_STRING "with TLS" diff --git a/include/crab/http/request_parser.hxx b/include/crab/http/request_parser.hxx index 9af6dc3..48a9fa4 100644 --- a/include/crab/http/request_parser.hxx +++ b/include/crab/http/request_parser.hxx @@ -338,7 +338,7 @@ CRAB_INLINE BodyParser::BodyParser(details::optional content_length, b // Rules about which requests and responses should and should not have body // are complicated. remaining_bytes = *content_length; - if (remaining_bytes < 65536) // TODO - constant + if (remaining_bytes < 4096) // TODO - constant body.get_buffer().reserve(static_cast(remaining_bytes)); } state = (remaining_bytes == 0) ? GOOD : CONTENT_LENGTH_BODY;