Skip to content

Conversation

geekerzp
Copy link
Contributor

  • Updated Python API client so that Accept and Content-Type header will use application/json if it's provided in the Swagger spec.
  • Tested without issue:
Ran 7 tests in 20.062s

OK
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23.231 s
[INFO] Finished at: 2015-05-22T10:49:42+08:00
[INFO] Final Memory: 11M/156M
[INFO] ------------------------------------------------------------------------

Also performed testing by flipping the order of application/xml, application/json in petstore.json and tests are fine.

fehguy added a commit that referenced this pull request May 23, 2015
Minor improvement to Python API Client 'accept' and 'content-type' header
@fehguy fehguy merged commit b6d206a into swagger-api:develop_2.0 May 23, 2015
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

Successfully merging this pull request may close these issues.

2 participants