Skip to content

Commit

Permalink
#67 first pass arbitrary http method support
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-swensen committed May 18, 2016
1 parent eaeb820 commit 5b0a28b
Show file tree
Hide file tree
Showing 3 changed files with 170 additions and 152 deletions.
3 changes: 3 additions & 0 deletions Ior/Core/RequestModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ public static List<string> TryCreate(RequestViewModel vm, out RequestModel reque
validationErrors.Add("Request URL is invalid");
}

if(vm.Method.IsBlank())
validationErrors.Add("Request Method may not be empty");

var requestHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
var contentHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
var acceptEncodings = new HashSet<string>();
Expand Down
Loading

0 comments on commit 5b0a28b

Please sign in to comment.