Skip to content

Conversation

nubber7
Copy link

@nubber7 nubber7 commented Dec 29, 2019

@app.route('/')
def home():
data = {'input_text': get_fact()}
response = requests.post(
"https://hidden-journey-62459.herokuapp.com/piglatinize/", data, allow_redirects=False)
page_headers = response.headers
pig_url = page_headers['Location']
return pig_url

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant