Skip to content

GET body not empty #9

@minipai

Description

@minipai

Seems that if I do a GET after POST, opts.body of GET request will send body that sent by POST
I had to modify fetchival to fix it.

    if (data) {
      opts.body = JSON.stringify(data)
    } else {
      delete opts.body
    }

another possible fix is let function fetchival return a new object

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions