Skip to content

fileserver: Remove newline characters from precomputed etags#6394

Merged
mholt merged 3 commits intocaddyserver:masterfrom
armadi1809:aar-trim-newline-from-etags
Jun 19, 2024
Merged

fileserver: Remove newline characters from precomputed etags#6394
mholt merged 3 commits intocaddyserver:masterfrom
armadi1809:aar-trim-newline-from-etags

Conversation

@armadi1809
Copy link
Contributor

This PR removes newline characters from etags acquired from precomputed files as per the discussion in #6222

@francislavoie francislavoie changed the title Remove newline characters from precomputed etags fileserver: Remove newline characters from precomputed etags Jun 13, 2024
@francislavoie francislavoie added the bug 🐞 Something isn't working label Jun 13, 2024
@armadi1809 armadi1809 force-pushed the aar-trim-newline-from-etags branch from 4d3a752 to f161093 Compare June 14, 2024 23:22
@armadi1809
Copy link
Contributor Author

The replacement of the newline character is now done through bytes.ReplaceAll.

@francislavoie francislavoie added this to the v2.8.5 milestone Jun 14, 2024
Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM now. I just made one quick stylistic change (IMO there's no need to convert "" to []byte, so we can just use an empty byte slice.)

@mholt mholt enabled auto-merge (squash) June 15, 2024 13:52
@mholt mholt merged commit c2ccf86 into caddyserver:master Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 🐞 Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants