15 years, 11 months ago
(2010-02-22 17:52:19 UTC)
#2
http://codereview.appspot.com/217074/diff/1/3
File java/common/src/main/java/org/apache/shindig/common/uri/UriBuilder.java
(right):
http://codereview.appspot.com/217074/diff/1/3#newcode68
java/common/src/main/java/org/apache/shindig/common/uri/UriBuilder.java:68:
(serverPort == 443 && "https".equals(scheme)) ? "" :
To be on the safe side, I will check also for port <=0 and don't specify port
(for some reason I remember seeing -1 when port is not specified).
Seems sensible to me. Added logic to accommodate this along w/ a new test, and ...
15 years, 11 months ago
(2010-02-22 19:48:58 UTC)
#3
Seems sensible to me. Added logic to accommodate this along w/ a new test,
and committed. Thanks!
On Mon, Feb 22, 2010 at 9:52 AM, <zhoresh@gmail.com> wrote:
>
> http://codereview.appspot.com/217074/diff/1/3
> File
>
> java/common/src/main/java/org/apache/shindig/common/uri/UriBuilder.java
> (right):
>
> http://codereview.appspot.com/217074/diff/1/3#newcode68
> java/common/src/main/java/org/apache/shindig/common/uri/UriBuilder.java:68:
> (serverPort == 443 && "https".equals(scheme)) ? "" :
> To be on the safe side, I will check also for port <=0 and don't specify
> port (for some reason I remember seeing -1 when port is not specified).
>
>
> http://codereview.appspot.com/217074/show
>
Issue 217074: Constructor to create UriBuilder from an HttpServletRequest
(Closed)
Created 15 years, 11 months ago by johnfargo
Modified 15 years, 11 months ago
Reviewers: shindig.remailer_gmail.com, zhoresh
Base URL: http://svn.apache.org/repos/asf/shindig/trunk/
Comments: 1