Fix publishing to the registry using requests