Permalink
Browse files

Merge pull request #40 from apiaryio/kylef/java-rel-path

[Java Code Example] Fix an issue with relative paths
  • Loading branch information...
2 parents 236ae0e + 4bbc4ba commit 35931e15b199e626587f729afb871dc2ab990e56 @abtris abtris committed Jun 9, 2015
Showing with 1 addition and 2 deletions.
  1. +1 −2 java.html
View
@@ -34,8 +34,7 @@
<% end %>
<% end %>
<% end %>
-Response response = client.target("<%= @apiUrl %>")
- .path("<%= @url %>")
+Response response = client.target("<%= @apiUrl %><%= @url %>")
<% switch @helpers.getContentType @headers : %>
<% when 'application/json' : %>
.request(MediaType.APPLICATION_JSON_TYPE)

0 comments on commit 35931e1

Please sign in to comment.