Visitar URL original
Cherry picked relevant chunked transfer encoding commits from master by umennel · Pull Request #833 · cpp-netlib/cpp-netlib · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use strongly typed enum.
  • Loading branch information
umennel committed Mar 31, 2018
commit 4a059fee150fbd907408b0cf372d6c2e15aa3415
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ template <class Tag>
struct chunk_encoding_parser {
chunk_encoding_parser() : state(state_t::header), chunk_size(0) {}

enum state_t { header, header_end, data, data_end };
enum class state_t { header, header_end, data, data_end };

state_t state;
size_t chunk_size;
Expand Down