Skip to content

Clarification on step 4 of Headers delete method #372

Closed

Description

@jeenalee

Step 4 of delete states:

  1. Otherwise, if guard is "request-no-cors" and name/invalid is not a CORS-safelisted request-header, return.

I'm a little confused what invalid in this case is.

Step 5 of append is similar to step 4 of delete, and it states:

  1. Otherwise, if guard is "request-no-cors" and name/value is not a CORS-safelisted request-header, return.

Is invalid in delete's step 4 a place holder for a headers value?

Activity

  1. annevk commented on Aug 23, 2016

    @annevk
    Member

    Yeah, that's the intention. I guess I can rename it placeholder and maybe add a note that it basically disqualifies Content-Type from being deleted.

  2. annevk commented on Aug 23, 2016

    @annevk
    Member

    Although I guess there's more headers these days than just Content-Type that need a "valid value".

  3. annevk commented on Aug 23, 2016

    @annevk
    Member

    Oh, doh, the reason is because delete() is not passed a value argument, so we need to make something up.

  4. jeenalee commented on Aug 23, 2016

    @jeenalee
    Author

    I see! It makes sense why it is phrased the way it is. Thank you for clarifying.

  5. added
    good first issue
    on Aug 24, 2016
  6. annevk commented on Aug 24, 2016

    @annevk
    Member

    A note should probably be added to avoid confusing others.

  7. reopened this on Aug 24, 2016
  8. added 2 commits that reference this issue on Oct 23, 2016
    2abb3e4
    202e4db
  9. added a commit that references this issue on Oct 24, 2016
    f8f9a10
  10. added a commit that references this issue on Oct 24, 2016
    8968b9c
  11. added a commit that references this issue on Mar 5, 2026
    93cf40c
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

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions