Visitar URL original
field name can not by empty by justjavac · Pull Request #684 · github/fetch · GitHub
The Wayback Machine - https://web.archive.org/web/20220428054245/https://github.com/github/fetch/pull/684
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

field name can not by empty #684

Merged
merged 1 commit into from Jan 2, 2019
Merged

field name can not by empty #684

merged 1 commit into from Jan 2, 2019

Conversation

Copy link
Contributor

@justjavac justjavac commented Dec 29, 2018

header-name can not by empty string

https://tools.ietf.org/html/rfc7230#section-3.2

header-field   = field-name ":" OWS field-value OWS

field-name     = token
field-value    = *( field-content / obs-fold )
field-content  = field-vchar [ 1*( SP / HTAB ) field-vchar ]
field-vchar    = VCHAR / obs-text

obs-fold       = CRLF 1*( SP / HTAB )
               ; obsolete line folding
               ; see Section 3.2.4

Browser Compatibility:

Firefox:

let headers = new Headers();
headers.set('', 'foo');  // TypeError:  is an invalid header name.

Chrome:

let headers = new Headers();
headers.set('', 'foo');  // TypeError: Failed to execute 'set' on 'Headers': Invalid name

Copy link
Member

@keithamus keithamus left a comment

LGTM! @mislav?

@mislav mislav merged commit 3674c98 into github:master Jan 2, 2019
1 check passed
@mislav
Copy link
Member

@mislav mislav commented Jan 2, 2019

Looks good; thank you!

williamcasto1970
Copy link

@williamcasto1970 williamcasto1970 commented on 96b37eb Jun 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

iloveqianhuiliu
Copy link

@iloveqianhuiliu iloveqianhuiliu commented on 96b37eb Jul 23, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any Chinese?

Ron-star
Copy link

@Ron-star Ron-star commented on 96b37eb Oct 13, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any Chinese?

none

elijahjamz
Copy link

@elijahjamz elijahjamz commented on 96b37eb May 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try that

elijahjamz
Copy link

@elijahjamz elijahjamz commented on 96b37eb May 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You like

innnzzz6
Copy link

@ghost ghost commented on 96b37eb Mar 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

charlesrutabanzibwa
Copy link

@ghost ghost commented on 96b37eb Dec 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

thor1704
Copy link

@ghost ghost commented on 96b37eb Dec 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fjj

thor1704
Copy link

@ghost ghost commented on 96b37eb Dec 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oieadisclaimer2009

charlesrutabanzibwa
Copy link

@ghost ghost commented on 96b37eb Mar 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

charlesrutabanzibwa
Copy link

@ghost ghost commented on 96b37eb May 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

SecretRose7
Copy link

@ghost ghost commented on 96b37eb Jul 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fiirefox7 Enterprise #Network

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants