{"action":"opened","issue":{"url":"https://api.github.com/repos/jayway/rest-assured/issues/228","labels_url":"https://api.github.com/repos/jayway/rest-assured/issues/228/labels{/name}","comments_url":"https://api.github.com/repos/jayway/rest-assured/issues/228/comments","events_url":"https://api.github.com/repos/jayway/rest-assured/issues/228/events","html_url":"https://github.com/jayway/rest-assured/issues/228","id":96123397,"number":228,"title":"RequestSpecification should use specified default port","user":{"login":"johanhaleby","id":187029,"avatar_url":"https://avatars.githubusercontent.com/u/187029?v=3","gravatar_id":"","url":"https://api.github.com/users/johanhaleby","html_url":"https://github.com/johanhaleby","followers_url":"https://api.github.com/users/johanhaleby/followers","following_url":"https://api.github.com/users/johanhaleby/following{/other_user}","gists_url":"https://api.github.com/users/johanhaleby/gists{/gist_id}","starred_url":"https://api.github.com/users/johanhaleby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanhaleby/subscriptions","organizations_url":"https://api.github.com/users/johanhaleby/orgs","repos_url":"https://api.github.com/users/johanhaleby/repos","events_url":"https://api.github.com/users/johanhaleby/events{/privacy}","received_events_url":"https://api.github.com/users/johanhaleby/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jayway/rest-assured/labels/bug","name":"bug","color":"FFFFFF"},{"url":"https://api.github.com/repos/jayway/rest-assured/labels/imported","name":"imported","color":"FFFFFF"},{"url":"https://api.github.com/repos/jayway/rest-assured/labels/invalid","name":"invalid","color":"FFFFFF"},{"url":"https://api.github.com/repos/jayway/rest-assured/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-20T18:09:14Z","updated_at":"2015-07-20T18:09:14Z","closed_at":null,"body":"_From [johan.ha...@gmail.com](https://code.google.com/u/105676376875942041029/) on June 09, 2011 10:47:03_\n\nWhen creating a new RequestSpecBuilder then port is set to 8080 (DEFAULT_PORT) it it's not defined explicitly (using setPort). What should happen is that it should read from the RestAssured.port value instead if it has been changed. \r\n\r\nE.g. \r\nbeforeClass: RestAssured.port = 8081\r\n\r\nin test: given().spec(someSpec()). .. \r\n\r\nsomeSpec() should default to port 8081 and not 8080 (which overrides the before class port)\n\n_Original issue: http://code.google.com/p/rest-assured/issues/detail?id=73_"}}