Skip to content

Commit

Permalink
fixes #161 - setHeader can be used in a scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
sglebs authored and smartrics committed Mar 16, 2016
1 parent e9473dc commit 38f38c5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main/java/smartrics/rest/fitnesse/fixture/RestFixture.java
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,20 @@ public void addHeader() {
}
}

// @sglebs - fixes #161. necessary to work with a scenario
public Map<String, String> setHeader(String headers) {
String substitutedHeaders = headers;
if (GLOBALS != null)
substitutedHeaders = GLOBALS.substitute(headers);
requestHeaders = parseHeaders(substitutedHeaders);
return requestHeaders;
}

// @sglebs - fixes #161. necessary to work with a scenario
public Map<String, String> setHeaders(String headers) {
return setHeader(headers);
}

/**
* Equivalent to setHeader - syntactic sugar to indicate that you can now.
*
Expand Down

0 comments on commit 38f38c5

Please sign in to comment.