Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(402)

Issue 1110041: JSONP and CORS for rest requests (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 8 months ago by Paul Lindner
Modified:
15 years, 8 months ago
Reviewers:
johnfargo, shindig.remailer
Visibility:
Public.

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
M java/common/src/main/java/org/apache/shindig/protocol/DataServiceServlet.java View 3 chunks +9 lines, -1 line 3 comments Download

Messages

Total messages: 2
Paul Lindner
15 years, 8 months ago (2010-05-05 01:34:33 UTC) #1
johnfargo
15 years, 8 months ago (2010-05-05 01:44:56 UTC) #2
meta-comment: test?

http://codereview.appspot.com/1110041/diff/1/2
File
java/common/src/main/java/org/apache/shindig/protocol/DataServiceServlet.java
(right):

http://codereview.appspot.com/1110041/diff/1/2#newcode100
java/common/src/main/java/org/apache/shindig/protocol/DataServiceServlet.java:100:
HttpUtil.setCORSheader(servletResponse);
This appears to be new; can't find any reference to it in HttpUtil@head.

http://codereview.appspot.com/1110041/diff/1/2#newcode175
java/common/src/main/java/org/apache/shindig/protocol/DataServiceServlet.java:175:
String callback =  (HttpUtil.isJSONP(servletRequest) &&
ContentTypes.OUTPUT_JSON_CONTENT_TYPE.equals(converter.getContentType())) ?
nit: reduce this line to 100 char

http://codereview.appspot.com/1110041/diff/1/2#newcode180
java/common/src/main/java/org/apache/shindig/protocol/DataServiceServlet.java:180:
if (callback != null) writer.write(");\n");
this whole chunk of new code can probably be pulled into an HttpUtil helper no?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b