combining server into http; adding mimetype