Closed torbenschinke closed 4 years ago
As luck would have it, I wrote my own tiny Accept: header processing library last year but never got around to polishing it up and releasing it, so I'll give it a go as a replacement.
cool, that sounds nice
I've pushed a possible 2.0 version if you want to try it. There's a small change to the API, you need to use gzipped.Dir
instead of http.Dir
now when setting up the fileserver, so you'll need to update your go.mod import to add the v2
to the end of the module name.
I made it use github.com/kevinpollet/nego for the content negotiation as my own code was buggy and I don't want to reinvent this particular fiddly wheel...
looks fine, it works great. Thx
OK, released 2.0.0.
I get an unexpectedly huge dependency tree, caused by github.com/golang/gddo.
Looks like it is only used in fileserver.go line 46 for a little parsing. May be worth, to substitute it.