swagger-api/swagger-codegen

Swift GET parameters are not URL encoded

Open

#3,037 建立於 2016年6月3日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)HTML (5,474 fork)batch import
Client: SwiftIssue: Bughelp wanted

倉庫指標

Star
 (12,701 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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())

貢獻者指南