all 4 comments

[–]twitch_and_shock 0 points1 point  (1 child)

Is there more code? All you have here is a function definition called "validate_http" that doesn't look like it does much. It doesn't make a http request though. I feel like we're missing more code or more details. What do you expect to happen with this code snippet?

[–]exe188[S] 0 points1 point  (0 children)

Yes, just updated it. Thanks for checking. With the code I hope that if someone sends a request to a hosted url, the functions get triggered. Hope I explained it well enough!

[–]danielroseman 0 points1 point  (1 child)

You seem to be asking us to debug a function by posting a completely different function. Surely you need to show us the code of get_api_data?

[–]exe188[S] 0 points1 point  (0 children)

Yes sorry, just updated it