HTTP/1 is the default version

fix #482
This commit is contained in:
Vinnie Falco
2017-06-13 05:02:27 -07:00
parent 0eb3a6b77e
commit 5058217c35
2 changed files with 7 additions and 2 deletions

View File

@ -3,6 +3,7 @@ Version 56:
* Add provisional IANA header field names
* Add string_view_body
* Call on_chunk when the extension is empty
* HTTP/1.1 is the default version
--------------------------------------------------------------------------------

View File

@ -64,8 +64,10 @@ struct header<true, Fields> : Fields
int major = version / 10;
int minor = version % 10;
@endcode
Newly constructed headers will use HTTP/1.1 by default.
*/
int version;
int version = 11;
/// Default constructor
header() = default;
@ -211,8 +213,10 @@ struct header<false, Fields> : Fields
major = version / 10;
minor = version % 10;
@endcode
Newly constructed headers will use HTTP/1.1 by default.
*/
int version;
int version = 11;
/// Default constructor.
header() = default;