strbuf: add strbuf_reencode helper
[gitweb.git] / remote-curl.c
index 10cb0114eafdfd9760b3fdb3c0217d801195ba13..a5ab977306ab19ad0def98ea11a6c0826acf7bbc 100644 (file)
@@ -205,7 +205,7 @@ static int show_http_message(struct strbuf *type, struct strbuf *msg)
         * TODO should handle "; charset=XXX", and re-encode into
         * logoutputencoding
         */
-       if (strcasecmp(type->buf, "text/plain"))
+       if (strcmp(type->buf, "text/plain"))
                return -1;
 
        strbuf_trim(msg);
@@ -423,11 +423,8 @@ static int run_slot(struct active_request_slot *slot,
        if (!results)
                results = &results_buf;
 
-       slot->results = results;
-       slot->curl_result = curl_easy_perform(slot->curl);
-       finish_active_slot(slot);
+       err = run_one_slot(slot, results);
 
-       err = handle_curl_result(results);
        if (err != HTTP_OK && err != HTTP_REAUTH) {
                error("RPC failed; result=%d, HTTP code = %ld",
                      results->curl_result, results->http_code);