Skip to content

Commit

Permalink
use y.rest.head() method for url.status
Browse files Browse the repository at this point in the history
  • Loading branch information
salathe committed Aug 28, 2011
1 parent e1d8e95 commit 6b20d30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions url/status.xml
Expand Up @@ -11,9 +11,9 @@
<key id="url" type="xs:string" paramType="variable" required="true"/>
</inputs>
<execute><![CDATA[
// y.rest().head() not available :-(
var results = y.rest(url).get();
response.object = {url: url, status: results.status, headers: results.headers};
// y.rest().head() is available as of b17991! :-)
var results = y.rest(url).head();
response.object = {url: results.url, status: results.status, headers: results.headers};
]]></execute>
</select>
</bindings>
Expand Down

0 comments on commit 6b20d30

Please sign in to comment.