There was no option to save&repeat redirects in static mocks.
I suggested to make them with symbolic links from file to file.
The problem in current implementation that Vapor follows symlink when reading content of the file, but sets "content-length" header to symlink size. So, we always have incomplete response.
So I decided to check if the file is symlink and then follow it
There was no option to save&repeat redirects in static mocks.
I suggested to make them with symbolic links from file to file.
The problem in current implementation that Vapor follows symlink when reading content of the file, but sets "content-length" header to symlink size. So, we always have incomplete response.
So I decided to check if the file is symlink and then follow it