We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
---ParameterParserImpl 98 行开始
if (requestContext.isAutoUpload() && upload != null) { // 如果是multipart/*请求,则调用upload service来解析。 isMultipart = upload.isMultipartContent(wrappedRequest);
if (isMultipart) { try { parseUpload(); } catch (UploadSizeLimitExceededException e) { add(ParserRequestContext.UPLOAD_FAILED, Boolean.TRUE); add(ParserRequestContext.UPLOAD_SIZE_LIMIT_EXCEEDED, Boolean.TRUE); log.warn("File upload exceeds the size limit", e); } catch (UploadException e) { add(ParserRequestContext.UPLOAD_FAILED, Boolean.TRUE); log.warn("Upload failed", e); } } } // 从request中取参数 if (!isMultipart) { String method = wrappedRequest.getMethod();
The text was updated successfully, but these errors were encountered:
这个行为是符合规范的吧?为什么不把参数放在form body中?
发自我的 iPhone
在 2015年7月5日,22:30,萧山 [email protected] 写道: ---ParameterParserImpl 98 行开始 if (requestContext.isAutoUpload() && upload != null) { // 如果是multipart/*请求,则调用upload service来解析。 isMultipart = upload.isMultipartContent(wrappedRequest); if (isMultipart) { try { parseUpload(); } catch (UploadSizeLimitExceededException e) { add(ParserRequestContext.UPLOAD_FAILED, Boolean.TRUE); add(ParserRequestContext.UPLOAD_SIZE_LIMIT_EXCEEDED, Boolean.TRUE); log.warn("File upload exceeds the size limit", e); } catch (UploadException e) { add(ParserRequestContext.UPLOAD_FAILED, Boolean.TRUE); log.warn("Upload failed", e); } } } // 从request中取参数 if (!isMultipart) { String method = wrappedRequest.getMethod(); — Reply to this email directly or view it on GitHub.
在 2015年7月5日,22:30,萧山 [email protected] 写道:
— Reply to this email directly or view it on GitHub.
Sorry, something went wrong.
逻辑上是可以把参数放子啊form body中; 但是webx 里面的rundata 和原生的servlet里面 request 的行为是不一致的; 会带来编码时的理解成本和前后端的沟通成本; 前端认为这个是符合请求规范的
是一致的,你可以去查servlet spec,post请求是不应该包含url参数的,否则在合并参数时会造成不确定性。
在 2015年7月6日,05:39,萧山 [email protected] 写道: 逻辑上是可以把参数放子啊form body中; 但是webx 里面的rundata 和原生的servlet里面 request 的行为是不一致的; 会带来编码时的理解成本和前后端的沟通成本; 前端认为这个是符合请求规范的 — Reply to this email directly or view it on GitHub.
在 2015年7月6日,05:39,萧山 [email protected] 写道:
No branches or pull requests
---ParameterParserImpl 98 行开始
if (requestContext.isAutoUpload() && upload != null) {
// 如果是multipart/*请求,则调用upload service来解析。
isMultipart = upload.isMultipartContent(wrappedRequest);
The text was updated successfully, but these errors were encountered: