Tags: dannflor/vapor
Tags
Conform `Bool` to `Content` (vapor#2848) * Add bool to support content protocol by default Add bool to support the content protocol by default. You can directly return bool types at the top level. ````swift app.get("isOK") { req in return true } `` * New test bool supports content protocol Co-authored-by: king <3925@winnermedical.com>
Merge pull request from GHSA-qvxg-wjxc-r4gg * Add test for crash * The sensible option * Crude fix * Throw an error if we hit a nesting limit * Catch error in test
Merge pull request from GHSA-vj2m-9f5j-mpr5 * Add failing test for crash * Bounds check the range and add a couple more test cases * Fail if range start is negative * Safer parsing of integer additions * Check requested size for range header * Check for 0 * Log errors and catch invalid range headers * One more log
Fix `content-length` calculation when streaming files (vapor#2835) * Throw internal server error on error streaming body * remove status change * Turn write statements into writeAndFlush HTTPHandler * revert writeandflush * Add mp4 media type to httpmediaheaders * Remove mp4 media type as it's listed in extensions * Add test for content range headers * Split up tests and fix within filestream
Add logs for failing parameters `require()` (vapor#2833) * Add debug log statements to parameters require * Add suggestion Co-authored-by: Tim Condon <0xTim@users.noreply.github.com> * Add suggestion Co-authored-by: Tim Condon <0xTim@users.noreply.github.com> * Fix generic type in string message Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
Expose the Channel's `ByteBufferAllocator` in `Request` and `Response` ( vapor#2595) * Expose a ByteBufferAllocator on request * Pass the channel's allocator to the Request initialiser * Use the same allocator in Request * zxPass the ByteBufferAllocator to the response and use it everywhere * Don't break the public API * Manually conform ClientResponse to Equtable * Don't break the public API for ClientResponse * Pass the allocator to the request body * Add ByteBufferAllocator to Client * Make some vars lets * Shorten buffer allocations * Set the ByteBufferAllocator before any trailing closures are run to avoid accidental sideeffects * Fix compilation error on 5.2 * Update timeout to try and get the tests to pass * Fix issues from merge * Don't break the API * Use the Response body's allocator instead of storing it on the response
Fix handling unicode characters in multipart filenames (vapor#2826) Adds a case to ContentDisposition to be compliant with rfc-5987. This allows handling of unicode and other format characters in filenames. closes vapor#2802 * Add case to init of contentdisposition * Add property for incoming UniCode characters to ContentDisposition * Revert to earlier commit * Add tests to decode and encode unicode
Update Supported Swift Versions (vapor#2825) * Update tools version * Update CI
Adds `cache.delete(_:)` (vapor#2821) * Write tests for clearing cache with SetToNil method * Add SetToNil methods in cache * Update reset cache tests to work with set * Remove `setToNil` function, add function override so nil is viable * Rename set to delete for nil to avoid breaking ch 3916 ange
PreviousNext