File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ class Client : public Object {
174174 std::vector<IPAddr> m_bind_ips;
175175};
176176
177- // A Client without cookie_jar would ignore all response-header "Set-Cookies "
177+ // A Client without cookie_jar would ignore all response-header "Set-Cookie "
178178Client* new_http_client (ICookieJar *cookie_jar = nullptr , TLSContext *tls_ctx = nullptr );
179179
180180ICookieJar* new_simple_cookie_jar ();
Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ class SimpleCookie {
5555public:
5656 unordered_map_string_key<SimpleValue> m_kv;
5757 int get_cookies_from_headers (Message* message) {
58- auto it = message->headers .find (" Set-Cookies " );
59- while (it != message->headers .end () && it.first () == " Set-Cookies " ) {
58+ auto it = message->headers .find (" Set-Cookie " );
59+ while (it != message->headers .end () && it.first () == " Set-Cookie " ) {
6060 LOG_INFO (" get cookie" );
6161 auto Cookies = it.second ();
6262 Parser p (Cookies);
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class ResponseHeaderAdaptor : public Response {
4949};
5050
5151ResponseHeaderAdaptor* new_resp (std::string text) {
52- text = " HTTP/1.1 200 ok\r\n Set-Cookies : " + text + " \r\n\r\n " ;
52+ text = " HTTP/1.1 200 ok\r\n Set-Cookie : " + text + " \r\n\r\n " ;
5353 ResponseHeaderAdaptor *ret = new ResponseHeaderAdaptor ();
5454 memcpy (ret->m_buf , text.data (), text.size ());
5555 ret->append_bytes (text.size ());
You can’t perform that action at this time.
0 commit comments