Comment 1 for bug 523045

Revision history for this message
Leonard Richardson (leonardr) wrote :

The error only occurs when invoking a named operation that results in a redirect. The underlying problem is that the HTTP method comes out of the WADL file in lowercase, and there's code in httplib2 that checks the HTTP method against a list of uppercase method names. "get" doesn't match "GET", so httplib2 thinks we're not doing a safe HTTP request and refuses to automatically follow the redirect.

I have a fix in lazr.restfulclient, but I'll need to add some code to lazr.restful to write a test for it. I should also file or find an httplib2 bug.