Remove unnecessary host entry from Spring REST Docs contract generation

This commit is contained in:
Tomasz Kopczynski
2017-05-08 00:17:58 +02:00
committed by Tomasz Kopczynski
parent 4c4a18ed22
commit 3d23964dca
3 changed files with 46 additions and 9 deletions

View File

@@ -323,15 +323,13 @@ import org.springframework.cloud.contract.spec.Contract
Contract.make {
request {
method 'POST'
url 'http://localhost:8080/foo'
url '/foo'
body('''
{"foo": 23 }
''')
headers {
header('''Accept''', '''application/json''')
header('''Content-Type''', '''application/json''')
header('''Host''', '''localhost:8080''')
header('''Content-Length''', '''12''')
}
}
response {