Permalink
Browse files

use y.rest.head() method for url.status

  • Loading branch information...
1 parent e1d8e95 commit 6b20d303050bdffe716b3a3e6a47fc7342f1ce71 @salathe salathe committed Aug 28, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 url/status.xml
View
@@ -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>

0 comments on commit 6b20d30

Please sign in to comment.