The Wayback Machine - https://web.archive.org/web/20200716045637/https://github.com/topics/request
Skip to content
#

request

Here are 1,191 public repositories matching this topic...

jethmalani
jethmalani commented Nov 14, 2017

What did you do?

When I do this (from your docs):

guard let dataFromString = text.data(using: .utf8, allowLossyConversion: false) else {return} let json = JSON(data: dataFromString)

I get an error "Call can throw, but it is not marked with 'try' and the error is not handled"

I did this. I just want to confirm that is right. It worked for me.

`guard let dataFromString

danielcompton
danielcompton commented May 11, 2017

request-ip goes down a list of different methods of providing an IP address, and picks the first one that works. If the user of this library doesn't filter out unknown/unexpected headers, this is quite a dangerous way of determining the IP address. If X-Client-IP wasn't filtered by the user's web server, then an attacker could set the X-Client-IP header themselves and request-ip would happily

Improve this page

Add a description, image, and links to the request topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the request topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.