Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST 요청시 nested 데이터 전송 필요 #35

Closed
jangbora opened this issue Mar 15, 2020 · 0 comments
Closed

POST 요청시 nested 데이터 전송 필요 #35

jangbora opened this issue Mar 15, 2020 · 0 comments

Comments

@jangbora
Copy link
Contributor

application/x-www-form-urlencoded 타입으로 POST전송이 기본으로 되어있습니다.

네이버페이(결제형) 환불시에 extra : {requester : "customer"} 과 같이 nested 데이터 전송이 필요합니다.
application/x-www-form-urlencoded 에서는 extra[requester]=customer 와 같이 전송되어야하는데,
iamport.cancel('test', imp_uid='nothing', extra={'requester': 'customer'})
와 같이 호출되었을 때, 실제로는 extra=requester 로 의도하지 않은 값으로 전송되는 현상이 있습니다.

application/x-www-form-urlencoded 방식으로는 명확한 해결방법을 찾기 어려워 모든 POST요청은 Content-Type: application/json 으로 변경할 것을 제안합니다.

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

No branches or pull requests

1 participant