implemented svg type passing in CocoaHTTPServer