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

FacebookResponse->getETag() returns null for batched response #521

@b-wils

Description

@b-wils

I can get all the headers and find the ETag there, however the utility getETag() function does not work.

It looks like the headers value on a FacebookResponse is constructed differently depending if it is an unbatched or part of a batched request.

Dumping there headers I can see unbatched requests are an associative array eg-
['Header1Name' = 'Header1Value', ...]

Batched request headers are a list of key value entires eg-
[['name' = 'Header1Name', 'value' = Header1Value], ...]

I'm not sure if the appropriate fix would be to update the way the FacebookResponse is constructed so that the headers structure is consistent or to update the accessor methods to handle the difference in structures.

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