Skip to content

GET body not empty #9

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

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions