@@ -5398,7 +5398,7 @@ bool read_content(Stream &strm, T &x, size_t payload_max_length, int &status,
53985398inline ssize_t write_request_line (Stream &strm, const std::string &method,
53995399 const std::string &path) {
54005400 std::string s = method;
5401- s += " " ;
5401+ s += ' ' ;
54025402 s += path;
54035403 s += " HTTP/1.1\r\n " ;
54045404 return strm.write (s.data (), s.size ());
@@ -5407,7 +5407,7 @@ inline ssize_t write_request_line(Stream &strm, const std::string &method,
54075407inline ssize_t write_response_line (Stream &strm, int status) {
54085408 std::string s = " HTTP/1.1 " ;
54095409 s += std::to_string (status);
5410- s += " " ;
5410+ s += ' ' ;
54115411 s += httplib::status_message (status);
54125412 s += " \r\n " ;
54135413 return strm.write (s.data (), s.size ());
@@ -5682,9 +5682,9 @@ inline std::string params_to_query_str(const Params ¶ms) {
56825682 std::string query;
56835683
56845684 for (auto it = params.begin (); it != params.end (); ++it) {
5685- if (it != params.begin ()) { query += " & " ; }
5685+ if (it != params.begin ()) { query += ' & ' ; }
56865686 query += encode_query_component (it->first );
5687- query += " = " ;
5687+ query += ' = ' ;
56885688 query += encode_query_component (it->second );
56895689 }
56905690 return query;
@@ -6443,9 +6443,9 @@ inline std::string make_content_range_header_field(
64436443
64446444 std::string field = " bytes " ;
64456445 field += std::to_string (st);
6446- field += " - " ;
6446+ field += ' - ' ;
64476447 field += std::to_string (ed);
6448- field += " / " ;
6448+ field += ' / ' ;
64496449 field += std::to_string (content_length);
64506450 return field;
64516451}
0 commit comments