swagger-api/swagger-codegen

Swift GET parameters are not URL encoded

Open

#3037 aperta il 3 giu 2016

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)HTML (5474 fork)batch import
Client: SwiftIssue: Bughelp wanted

Metriche repository

Star
 (12.701 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Description

Generated Swift clients do not URL-encode GET parameters. This must be done if a GET parameter contains characters like slash ('/') or pipe ('|')

Swagger-codegen version

Swagger 2.2.0

Suggest a Fix

URL-encode all parameters by calling object.stringByAddingPercentEncodingWithAllowedCharacters(.URLHostAllowedCharacterSet())

Guida contributor