소스 검색

Imported changes from xs.

default 2 년 전
부모
커밋
2766fbd49c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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