Skip to content
This repository was archived by the owner on Jan 21, 2022. It is now read-only.
This repository was archived by the owner on Jan 21, 2022. It is now read-only.

Need "header" field in the batch body. #890

Open
@wanglw

Description

@wanglw

When I tried to use batch method to call several apis, and I used "if-match" headers in the several apis, then it will met issue: I cann't get the headers in the several apis. I think it is related to which is related to https://github.com/cloudfoundry-incubator/cf-abacus/blob/master/lib/utils/router/src/index.js#L129

For example:
POST http://localhost:11443/batch
body:

[
    {
        "method": "PUT",
        "uri": "/v1/service/0bad702d61306bab3cf1daea4b861862",
        "headers":
            {"if-match": "2-5d465f5efc262c8be8f646bbcfc19fdc"}
        ,
        "body": {
            "resource_id": "TEST",
            "free": false,
            "lite": false
        }
    }
]

I will need the "if-match" header value in my code, but I cann't get the this header. It has bothered me several days, could you please help me on it? thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions