vapor / http

🚀 Non-blocking, event-driven HTTP built on Swift NIO.
MIT License
240 stars 65 forks source link

Update the RFC1123 formatter with support for multiple locales #372

Closed admkopec closed 4 years ago

admkopec commented 4 years ago

Added more locale specific settings to support wider ranges of locales. If the application containing the server would declare support for other locales, then the RFC1123 formatted string wouldn't be RFC compliant. This fix makes sure that the formatter always uses the enUS_POSIX locale and the Georgian calendar.

tanner0101 commented 4 years ago

Hey @admkopec thanks for this PR. vapor/http has been merged into Vapor itself now and the RFC1123 latest helper is here: https://github.com/vapor/vapor/blob/master/Sources/Vapor/Utilities/RFC1123.swift

admkopec commented 4 years ago

Thanks for the info @tanner0101 I just haven't noticed that the file was merged into the main vapor repository. I opened the appropriate PR there. (PR #2127)