RedMadRobot / catbird

Mock server for UI tests
MIT License
50 stars 10 forks source link

Respect symlinks when reading static mocks #31

Open vasvf opened 3 years ago

vasvf commented 3 years ago

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