Skip to content

When using OctaneHandler with serverless it parses Content-Disposition: form-data incorrectly #189

Description

@vedmant

When using OctaneHandler with serverless it parses "Content-Disposition: form-data" incorrectly, specifically in arrays like:

references[0][openalex_id]: 4390954279
references[0][url]: 
references[1][openalex_id]: 4313323164
references[1][url]: 
references[2][openalex_id]:
references[2][url]: https://theedgemalaysia.com/node/745911

It parses into separate array objects:


{
  "references":
  [
    {
      "openalex_id": "4390954279"
    },
    {
      "url": ""
    },
    {
      "openalex_id": "4313323164"
    },
    {
      "url": ""
    },
    {
      "openalex_id": ""
    },
    {
      "url": "https://theedgemalaysia.com/node/745911"
    }
  ]
}

But it should parse into:

{
  "references":
  [
    {
      "openalex_id": "4390954279",
      "url": ""
    },
    {
      "openalex_id": "4313323164",
      "url": ""
    },
    {
      "openalex_id": "",
      "url": "https://theedgemalaysia.com/node/745911"
    }
  ],
} 

Also any way I can run bref with OctaneHandler locally with docker, so I can debug it further? Currently I setup Octane with frankenphp image.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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