Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

[Compliance]/send receives StatusCode 202 "pending" or 403 "denied" returns InternalServerError instead of Pending/Denied #109

Description

@acsanluis

https://github.com/stellar/bridge-server/blob/7a0a8f0444e7e83d67251aadb635ad3a64cb9f32/src/github.com/stellar/gateway/compliance/handlers/request_handler_send.go#L274

If other FI's compliance server returns 202 "pending" or 403 "denied", it will return InternalServerError as the if condition is != 200 only.

It should be:
if resp.StatusCode != 200 && resp.StatusCode != 202 && resp.StatusCode != 403 {
...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions