Generator.Generate now strips the URL fragment from the request

Also fixed a formatting error in miniserver