Skip to content

Commit

Permalink
Fix for #120
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-tihon committed Nov 6, 2019
1 parent 8ad60ed commit 234c984
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion docs/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#### 0.10.0-beta11 - November XX, 2019
- Delete method incorrectly cased [#120](https://github.com/fsprojects/SwaggerProvider/issues/120)

#### 0.10.0-beta10 - November 6, 2019
- Support REST convention with pluralized entities in mode with IgnoreOperationId=true [#121](https://github.com/fsprojects/SwaggerProvider/pull/121)
- Fixed null refs in optional headers [#123](https://github.com/fsprojects/SwaggerProvider/pull/123)

#### 0.10.0-beta09 - November 3, 2019
#### 0.10.0-beta09 - November 5, 2019
- TP parameter names are unified [#129](https://github.com/fsprojects/SwaggerProvider/pull/129)

#### 0.10.0-beta08 - November 3, 2019
Expand Down
4 changes: 2 additions & 2 deletions src/SwaggerProvider.Runtime/RuntimeHelpers.fs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ module RuntimeHelpers =
let combineUrl (urlA:string) (urlB:string) =
sprintf "%s/%s" (urlA.TrimEnd('/')) (urlB.TrimStart('/'))

let createHttpRequest httpMethod address queryParams =
let createHttpRequest (httpMethod:string) address queryParams =
let requestUrl =
let fakeHost = "http://fake-host/"
let builder = UriBuilder (combineUrl fakeHost address)
Expand All @@ -111,7 +111,7 @@ module RuntimeHelpers =
builder.Query <- query.ToString()
builder.Uri.PathAndQuery.TrimStart('/')

let method = HttpMethod(httpMethod)
let method = HttpMethod(httpMethod.ToUpper())
new HttpRequestMessage(method, Uri(requestUrl, UriKind.Relative))

let fillHeaders (msg:HttpRequestMessage) (headers:(string*string) seq) =
Expand Down

0 comments on commit 234c984

Please sign in to comment.