Closed iongion closed 5 years ago
Hi! I took over this project and would like to follow up on this.
For future reference these are 2 separate issues:
@smhg Looks like you took over and abandoned again? :) What a pity. Just encountered this issue. Are you available at least for merging PR and publishing or did you lost interest completely?
Either way, I don't agree there should be any "uppercasing" happening. It should really be left in the same state as it was read. Besides various editors doing some shenanigans, this is also super annoying for file versioning. One tool changes headers some way, other tool does it differently and if it happens between commits, it's full of unrelated changes.
I do maintain this project. The few open issues are just the ones for which I'd appreciate PR's.
~Sidenote: for some weird reason I don't get e-mailed when there is a new issue or PR unless you ping me with an @username
(so please feel free to always do that).~
Concerning the headers: I think we are all on the same page here. Feel free to submit your solution. Since these are 2 separate issues, maybe separate them into 2 PR's?
@smhg Sorry, but we ended up using a different parsing module which works much better. I guess this issue will hang here for another period of time :)
Care to share what worked for you so others can benefit from it?
I've changed how headers are handled. The ones from this list have a fixed title case format. All others are left unchanged.
Released on npm as 4.0.0-alpha.0
.
@iongion @FredyC @vallo87 @AlexMost it would be great if one of you could give it a try.
I have checked this on my use case and seems like everything is ok! Thanks a lot!
Headers act weird:
And the generated files outputs:
As you can see,
Content-Type
header lacks the charset and then theX-Poedit-SourceCharset
header casing is weird and confuses 3rd party editors, it becomesX-Poedit-Sourcecharset
Can't the headers be sent as they are ? Without any magic title casing ?