This allows blobs to load when the blob reference in the markdown has
?contentType=image/jpeg or similar hints attached.
It does so by simply removing the GET parameters from the URL though.
It would be a bit nicer to actually use those hints to set the right
HTTP response headers, but somehow koa keeps ignoring / overwriting (?)
the manually-set Content-Type headers, so this has to do for now.
This allows blobs to load when the blob reference in the markdown has
?contentType=image/jpeg
or similar hints attached. It does so by simply removing the GET parameters from the URL though. It would be a bit nicer to actually use those hints to set the right HTTP response headers, but somehow koa keeps ignoring / overwriting (?) the manually-setContent-Type
headers, so this has to do for now.What's the problem you solved?
What solution are you recommending?