Skip to content

Commit 18e3704

Browse files
author
tbart
committed
Fixes: 1638017 & 1638020
Modifications as requested
1 parent c7df1d7 commit 18e3704

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

storage/innobase/xtrabackup/src/xbcloud.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ int get_http_header(const char *prefix, const char *buffer,
509509

510510
prefix_len = strlen(prefix);
511511

512-
if (strncmp(buffer, prefix, prefix_len) == 0) {
512+
if (strncasecmp(buffer, prefix, prefix_len) == 0) {
513513
beg = buffer + prefix_len;
514514
end = strchr(beg, '\r');
515515

@@ -603,7 +603,7 @@ swift_temp_auth(const char *auth_url, swift_auth_info *info)
603603
}
604604
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &http_code);
605605
if (http_code != 200 &&
606-
http_code != 204) {
606+
http_code != 204) {
607607
fprintf(stderr, "error: authentication failed "
608608
"with response code: %ld\n", http_code);
609609
res = CURLE_LOGIN_DENIED;
@@ -1080,7 +1080,7 @@ size_t upload_header_read_cb(char *ptr, size_t size, size_t nmemb,
10801080
connection_info *conn = (connection_info *)(data);
10811081
char etag[33];
10821082

1083-
if (get_http_header("ETag: ", ptr, etag, array_elements(etag))) {
1083+
if (get_http_header("Etag: ", ptr, etag, array_elements(etag))) {
10841084
if (strcmp(conn->hash, etag) != 0) {
10851085
fprintf(stderr, "error: ETag mismatch\n");
10861086
exit(EXIT_FAILURE);

0 commit comments

Comments
 (0)