Permalink
Browse files

Merge pull request #67 from jamesrdf/http-request-systemId

Fix systemId for redirected HTTP requests in p:http-request
  • Loading branch information...
ndw committed Jan 28, 2013
2 parents 76283da + e4b7158 commit d2be7c3bad21f26e2ece5fc72599e795fc0ba61b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/com/xmlcalabash/library/HttpRequest.java
@@ -322,11 +322,11 @@ public void run() throws SaxonApiException {
}
TreeWriter tree = new TreeWriter(runtime);
- tree.startDocument(requestURI);
try {
// Execute the method.
int statusCode = client.executeMethod(httpResult);
+ tree.startDocument(URI.create(httpResult.getURI().getURI()));
// Deal with cookies
if (saveCookieKey != null) {

0 comments on commit d2be7c3

Please sign in to comment.