Only open url in browser for GET request, fixes #299.