Skip to content

A GET/HEAD action with no body does not send from the web client #468

Closed
@ollien

Description

@ollien

While the backend properly validates that you cannot attach a body to a GET/HEAD request, the web client does not allow you to perform these actions, spitting this into the console

TypeError: Window.fetch: HEAD or GET Request cannot have a body.

MRE:

curl ntfy.sh \
  -d '{
    "topic": "5cba1ce1-6373-458a-83f5-105fe5d258d5",
    "message": "",
    "actions": [
      {
        "action": "http",
        "label": "Call it",
        "url": "http://127.0.0.1:8000",
        "method": "GET"
      }
    ]
  }'

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