Quellcode durchsuchen

🐛 #1547 修复小程序二维码创建参数包含中文时出现乱码的问题

dev1
Howard Liu vor 5 Jahren
committed by GitHub
Ursprung
Commit
8f5a9e0d76
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden GPG-Schlüssel-ID: 4AEE18F83AFDEB23
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. +1
    -1
      weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/QrcodeRequestExecutor.java

+ 1
- 1
weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/util/QrcodeRequestExecutor.java Datei anzeigen

@@ -48,7 +48,7 @@ public class QrcodeRequestExecutor implements RequestExecutor<File, AbstractWxMa
);
}

httpPost.setEntity(new StringEntity(qrcodeWrapper.toJson()));
httpPost.setEntity(new StringEntity(qrcodeWrapper.toJson(), ContentType.APPLICATION_JSON));

try (final CloseableHttpResponse response = requestHttp.getRequestHttpClient().execute(httpPost);
final InputStream inputStream = InputStreamResponseHandler.INSTANCE.handleResponse(response)) {


Laden…
Abbrechen
Speichern