Heapy/kotlin-dev-proxy

Font files fail to load after passing through the proxy

abhinavsayan opened this issue · 4 comments

I tried setting the individual content tpe for these files but I still get the error
OTS parsing error: Failed to convert WOFF 2.0 font to SFNT

IRus commented

@abhinavsayan Thanks for report, I'll look into that today!

@IRus I created an exact same version in Java over spark. The issue was with all binary files.
I have fixed it in java project. I'll send over the fix.

You can find the fix here.

The response is copied as a binary stream rather than a text result. I'll upload the whole project soon.

IRus commented

Fixed after migrating to undertow.