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

Issue 130055: Support fallback URL in proxy (#2) (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 4 months ago by johnfargo
Modified:
16 years, 3 months ago
Reviewers:
Paul Lindner, shindig.remailer
Base URL:
http://svn.apache.org/repos/asf/incubator/shindig/trunk/
Visibility:
Public.

Description

Support a fallback_url parameter in the content proxy. This URL is fetched when the original target URL returns an error (HTTP >= 400). This is of particular value with the image proxy: fallback_url can be set to a valid known image to avoid broken images showing up. Includes tweaks and a fix verified in integration test.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -3 lines) Patch
java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/ProxyHandler.java View 3 chunks +19 lines, -3 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/servlet/ProxyHandlerTest.java View 2 chunks +24 lines, -0 lines 0 comments Download

Messages

Total messages: 2
johnfargo
16 years, 4 months ago (2009-10-10 04:36:59 UTC) #1
Paul Lindner
16 years, 4 months ago (2009-10-15 21:24:43 UTC) #2
It might be nice to document this behavior somewhere in the code base...

Otherwise looks good.  Let me know if you want me to apply this.
Sign in to reply to this message.

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