Skip to content

Commit

Permalink
header-list sort used by ingore case cmp (#44)
Browse files Browse the repository at this point in the history
Co-authored-by: gavinhgchen <[email protected]>
  • Loading branch information
chen-honggang and gavinhgchen authored Oct 24, 2022
1 parent 0fc60ff commit 58cf933
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cos_c_sdk/cos_sys_define.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ typedef apr_array_header_t cos_array_header_t;
#define COS_MD5_STRING_LEN 32
#define COS_MAX_URI_LEN 2048
#define COS_MAX_HEADER_LEN 8192
#define COS_MAX_QUERY_ARG_LEN 1024
#define COS_MAX_QUERY_ARG_LEN 2048
#define COS_MAX_GMT_TIME_LEN 128

#define COS_MAX_XML_NODE_VALUE_LEN 1024
Expand Down
2 changes: 1 addition & 1 deletion cos_c_sdk/cos_sys_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ int cos_url_encode(char *dest, const char *src, int maxSrcSize)

static int table_dict_cmp(const void * a, const void * b)
{
return strcmp(((cos_table_entry_t*)a)->key, ((cos_table_entry_t*)b)->key);
return strcasecmp(((cos_table_entry_t*)a)->key, ((cos_table_entry_t*)b)->key);
}

void cos_table_sort_by_dict(cos_table_t *table)
Expand Down

0 comments on commit 58cf933

Please sign in to comment.