added content type
fixed main.function
yaml for emergency
fixed to avoid redirect
fixed as it parses uri
fixed as it works