Skip to content

Library does not respond to status code 302 as desired #53

@digitalergonom

Description

@digitalergonom

When PATCHing to a RESTful service, the service responds with 302 to redirect me to the updated source. Instead getting it's content (default RoR behavior) the library retries to PATCH to the new url, which ends in an infinite loop, which is only catched by my servers spam protection.

I tried to intercept this by overwriting _performApiCall and looking at fail and done. Both methods are not called, until my server stops the cycle by sending a status code of 0.

My suggestion is, to keep the current implemtation as default behavior, but enable the interception by (a) a concrete method or (b) a new entry in ApiCallOptions.

Looking forward to discuss a possible solution, that does not include changing the backend.

Regards,
Sascha

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions