Skip to content

Commit 491c3fd

Browse files
committed
修正验签时间戳HTTP头拼写, fixes #10
1 parent 3620c95 commit 491c3fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/wechat/pay/contrib/apache/httpclient/auth/WechatPay2Validator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public final boolean validate(CloseableHttpResponse response) throws IOException
3636
}
3737

3838
protected final String buildMessage(CloseableHttpResponse response) throws IOException {
39-
String timestamp = response.getFirstHeader("Wechatpay-TimeStamp").getValue();
39+
String timestamp = response.getFirstHeader("Wechatpay-Timestamp").getValue();
4040
String nonce = response.getFirstHeader("Wechatpay-Nonce").getValue();
4141

4242
String body = getResponseBody(response);

0 commit comments

Comments
 (0)