incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fojtik <mfoj...@redhat.com>
Subject Re: Fix for HTTP redirects in the deltacloud-client
Date Mon, 11 Oct 2010 12:55:19 GMT
On 11/10/10 14:29 +0200, tsedovic@redhat.com wrote:

ACK. Nice catch Tomas. Tested && Pushed.

>Hey all,
>
>The current version of deltacloud-client doesn't support HTTP redirects. When
>you do
>
>    DeltaCloud.new('mockuser', 'mockpassword', 'http://localhost:3001')
>
>with `deltacloudd -i mock` listening on the port 3001, the connection will
>fail, because the client doesn't proces the response properly.
>
>(note that the mock server redirects '/' to '/api')
>
>These two patches add tests for this and implement a solution.
>
>[PATCH 1/2] Add tests for URLs that return HTTP redirect
>[PATCH 2/2] Follow HTTP redirects for API URLs in the client
>
>Please let me know what you think and chew me up if you can find a better
>solution -- I'm not very familiar with the codebase.
>
>Cheers,
>Tomas Sedovic

-- 
--------------------------------------------------------
Michal Fojtik, mfojtik@redhat.com
Deltacloud API: http://deltacloud.org
--------------------------------------------------------

Mime
View raw message