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

HttpLexer: support for empty HTTP headers #2461

Merged
merged 1 commit into from
Jun 24, 2023

Conversation

randomstuff
Copy link
Contributor

@randomstuff randomstuff commented Jun 24, 2023

Example UPnP message found in the wild:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Tue, 18 Aug 2020 22:30:55 GMT
EXT:
LOCATION: http://192.168.1.1:60000/62177d51/gatedesc.xml SERVER: Unspecified, UPnP/1.0, SoftAtHome
ST: upnp:rootdevice
USN: uuid:62177d51-6ebe-4d59-9e8d-59cc417d3f9c::upnp:rootdevice

Example UPnP message found in the wild:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Tue, 18 Aug 2020 22:30:55 GMT
EXT:
LOCATION: http://192.168.1.1:60000/62177d51/gatedesc.xml
SERVER: Unspecified, UPnP/1.0, SoftAtHome
ST: upnp:rootdevice
USN: uuid:62177d51-6ebe-4d59-9e8d-59cc417d3f9c::upnp:rootdevice
@randomstuff randomstuff changed the title Fixes for HttpLexer HttpLexer: support for empty HTTP headers Jun 24, 2023
@jeanas jeanas merged commit 99395c1 into pygments:master Jun 24, 2023
@jeanas
Copy link
Contributor

jeanas commented Jun 24, 2023

Thanks!

@randomstuff randomstuff deleted the http-lexer-empty-headers branch July 5, 2023 23:01
@Anteru Anteru added this to the 2.16.0 milestone Aug 5, 2023
@Anteru Anteru added the A-lexing area: changes to individual lexers label Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lexing area: changes to individual lexers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants