Commit 173a1f0b by 罗长华

Date -> x-im-Date

parent a616bd9e
...@@ -43,8 +43,7 @@ public class SignUtils { ...@@ -43,8 +43,7 @@ public class SignUtils {
for (Map.Entry<String, String> header : headers.entrySet()) { for (Map.Entry<String, String> header : headers.entrySet()) {
if (header.getKey() != null) { if (header.getKey() != null) {
String lowerKey = header.getKey().toLowerCase(); String lowerKey = header.getKey().toLowerCase();
if (lowerKey.equals(HttpHeaders.CONTENT_TYPE.toLowerCase()) if (lowerKey.equals(HttpHeaders.CONTENT_TYPE.toLowerCase())) {
|| lowerKey.equals(HttpHeaders.DATE.toLowerCase())) {
fixedHeadersToSign.put(lowerKey, header.getValue().trim()); fixedHeadersToSign.put(lowerKey, header.getValue().trim());
} else if (lowerKey.startsWith(IM_PREFIX)) { } else if (lowerKey.startsWith(IM_PREFIX)) {
canonicalizedImHeadersToSign.put(lowerKey, header.getValue().trim()); canonicalizedImHeadersToSign.put(lowerKey, header.getValue().trim());
......
...@@ -16,7 +16,7 @@ public interface HttpHeaders { ...@@ -16,7 +16,7 @@ public interface HttpHeaders {
public static final String CONTENT_MD5 = "Content-MD5"; public static final String CONTENT_MD5 = "Content-MD5";
public static final String CONTENT_TYPE = "Content-Type"; public static final String CONTENT_TYPE = "Content-Type";
public static final String TRANSFER_ENCODING = "Transfer-Encoding"; public static final String TRANSFER_ENCODING = "Transfer-Encoding";
public static final String DATE = "Date"; public static final String DATE = "x-im-Date";
public static final String ETAG = "ETag"; public static final String ETAG = "ETag";
public static final String EXPIRES = "Expires"; public static final String EXPIRES = "Expires";
public static final String HOST = "Host"; public static final String HOST = "Host";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment