We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e26d192 commit c1a88c1Copy full SHA for c1a88c1
docs/zh/05_web开发/11.md
@@ -58,8 +58,8 @@ public HttpResponse download(String id, HttpRequest request) {
58
available = inputStream.available();
59
byte[] fileBytes = new byte[available];
60
inputStream.read(fileBytes, 0, available);
61
- HttpResponse response = Resps.bytesWithContentType(request, fileBytes,
62
- "application/vnd.openxmlformats-officedocument.wordprocessingml.document; charset=utf-8");
+ String contentType = "application/vnd.openxmlformats-officedocument.wordprocessingml. document; charset=utf-8";
+ HttpResponse response = Resps.bytesWithContentType(request, fileBytes, contentType);
63
return response;
64
} catch (IOException e) {
65
e.printStackTrace();
0 commit comments