Explorar o código

Imported changes from xs.

default %!s(int64=2) %!d(string=hai) anos
pai
achega
2766fbd49c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      xs_curl.h

+ 2 - 0
xs_curl.h

@@ -27,6 +27,8 @@ static size_t _header_callback(char *buffer, size_t size,
     if (xs_str_in(l, ": ") != -1) {
         xs *knv = xs_split_n(l, ": ", 1);
 
+        xs_tolower(xs_list_get(knv, 0));
+
         headers = xs_dict_append(headers, xs_list_get(knv, 0), xs_list_get(knv, 1));
     }
     else