The discovery_discover() method currently asks the client to pass in which rel link the client wants information about. This is not so good if there are multiple links, and the client wants all of them. In this case, the discovery_discover() method would require multiple calls, with each call making an http request to the target in order to get the information.

The rel value should be allowed to be blank, in which case all links are returned.

Patch attached

Comments

rurri’s picture

StatusFileSize
new551 bytes

Actually, its better if this method returns the array mapped by the rel link. Makes it nice and easy.

walkah’s picture

Status: Active » Fixed

both patches applied, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.