Chris Hillery has proposed merging lp:~zorba-coders/zorba/oauth-status-codes into lp:zorba/oauth-module.
Commit message: Accept HTTP status codes 201 and 202. Requested reviews: Matthias Brantner (matthias-brantner) Chris Hillery (ceejatec) For more details, see: https://code.launchpad.net/~zorba-coders/zorba/oauth-status-codes/+merge/167707 -- https://code.launchpad.net/~zorba-coders/zorba/oauth-status-codes/+merge/167707 Your team Zorba Coders is subscribed to branch lp:zorba/oauth-module.
=== modified file 'src/com/zorba-xquery/www/modules/oauth/client.xq' --- src/com/zorba-xquery/www/modules/oauth/client.xq 2013-04-02 04:00:45 +0000 +++ src/com/zorba-xquery/www/modules/oauth/client.xq 2013-06-06 07:25:34 +0000 @@ -626,13 +626,14 @@ let $body := if($response[2] instance of xs:base64Binary) then base64:decode($response[2]) else $response[2] let $status := xs:integer($head/@status) return - if($status eq 200) + if($status ge 200 and $status le 202) then if ($format-params) then oauth:parse-parameters($body) else $response - else if ( ($status ge 301 and $status le 303) or $status eq 307 ) then { + else if ( ($status ge 301 and $status le 303) or + ($status eq 307) ) then { replace value of node $protected-resource/@href with data($head/http-client:header[@name eq "Location"]/@value); oauth:format-request(
-- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp